chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
100a76e
)
strv: make sure empty string lists result in a valid empty string in strv_join()
author
Lennart Poettering
<lennart@poettering.net>
Sun, 14 Feb 2010 21:38:07 +0000
(22:38 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 14 Feb 2010 21:38:07 +0000
(22:38 +0100)
strv.c
patch
|
blob
|
history
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;
}