diff options
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c index edf7348ba7..b7690eac4c 100644 --- a/lib/command.c +++ b/lib/command.c @@ -290,10 +290,12 @@ vector cmd_make_strvec(const char *string) for (unsigned int i = 0; i < vector_active(result); i++) { if (strlen(vector_slot(result, i)) == 0) { XFREE(MTYPE_TMP, vector_slot(result, i)); - vector_remove(result, i); - --i; + vector_unset(result, i); } } + + vector_compact(result); + return result; } |
