summaryrefslogtreecommitdiff
path: root/lib/vector.c
diff options
context:
space:
mode:
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 75f6c00bd9..ebac2b46e9 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;