summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-06 21:52:35 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-06 21:52:35 +0200
commit7418040c3ada8c57c436b2a2ff44fb490f6781f7 (patch)
treee47e588043d1ec6ae5f5f91076c1c3c150f8bc68
parent67d51650ce3c3741bad8e5dca5d4e03c30f266cd (diff)
conf-parser: fix strv parsing
-rw-r--r--conf-parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf-parser.c b/conf-parser.c
index 8883d9ed68..5da5587408 100644
--- a/conf-parser.c
+++ b/conf-parser.c
@@ -371,6 +371,8 @@ int config_parse_strv(
if (*sv)
for (k = 0; (*sv)[k]; k++)
n[k] = (*sv)[k];
+ else
+ k = 0;
FOREACH_WORD_QUOTED(w, l, rvalue, state)
if (!(n[k++] = strndup(w, l)))