1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 18:55:09 +03:00

strv: make sure empty string lists result in a valid empty string in strv_join()

This commit is contained in:
Lennart Poettering 2010-02-14 22:38:07 +01:00
parent 100a76ee32
commit 8d49745c2b

2
strv.c
View File

@ -281,6 +281,8 @@ char *strv_join(char **l, const char *separator) {
e = stpcpy(e, *s);
}
*e = 0;
return r;
}