summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-15 14:08:28 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-15 14:08:28 +0100
commit4d5d9d001105507ee40ff56f0456053c2c7ed6d3 (patch)
tree03c470a4c31d1d6f9f041863a94ea1452dbc9b88 /src/basic
parent3aa3d5d412d9d7f548c08b2d060331437ed7d514 (diff)
parent7f6e804332f50dbd52afe04f5c3ce9db1072c98b (diff)
Merge pull request #2596 from keszybz/move-activate-to-bin
Move activate to bin, extend --fdnames functionality
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/strv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/strv.c b/src/basic/strv.c
index b5d4d8191b..8282298dca 100644
--- a/src/basic/strv.c
+++ b/src/basic/strv.c
@@ -371,7 +371,7 @@ char *strv_join(char **l, const char *separator) {
n = 0;
STRV_FOREACH(s, l) {
- if (n != 0)
+ if (s != l)
n += k;
n += strlen(*s);
}
@@ -382,7 +382,7 @@ char *strv_join(char **l, const char *separator) {
e = r;
STRV_FOREACH(s, l) {
- if (e != r)
+ if (s != l)
e = stpcpy(e, separator);
e = stpcpy(e, *s);