summaryrefslogtreecommitdiffstats
path: root/lib/vector.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-05-25 22:31:07 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-06-06 18:16:12 +0200
commit0a334343d14ee8c49f561e7e3c8def1dda93e8db (patch)
tree6a9e3a19019b7f7f4e845739d4f8d36223837389 /lib/vector.c
parentvtysh: add | support (diff)
downloadfrr-0a334343d14ee8c49f561e7e3c8def1dda93e8db.tar.xz
frr-0a334343d14ee8c49f561e7e3c8def1dda93e8db.zip
*: style for | support
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/vector.c')
-rw-r--r--lib/vector.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vector.c b/lib/vector.c
index 75f6c00bd..ebac2b46e 100644
--- a/lib/vector.c
+++ b/lib/vector.c
@@ -192,6 +192,7 @@ void vector_to_array(vector v, void ***dest, int *argc)
vector array_to_vector(void **src, int argc)
{
vector v = vector_init(VECTOR_MIN_SIZE);
+
for (int i = 0; i < argc; i++)
vector_set_index(v, i, src[i]);
return v;