summaryrefslogtreecommitdiff
path: root/strv.c
diff options
context:
space:
mode:
Diffstat (limited to 'strv.c')
-rw-r--r--strv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/strv.c b/strv.c
index 25ea92c112..4cea86e04f 100644
--- a/strv.c
+++ b/strv.c
@@ -281,6 +281,8 @@ char *strv_join(char **l, const char *separator) {
e = stpcpy(e, *s);
}
+ *e = 0;
+
return r;
}