chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
strv: make sure empty string lists result in a valid empty string in strv_join()
[elogind.git]
/
strv.c
diff --git
a/strv.c
b/strv.c
index 25ea92c112c26e6170436e7b08dc71857dbc64f7..4cea86e04fcc427fad717599531ee718d771b356 100644
(file)
--- 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;
}