diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-06 21:52:35 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-06 21:52:35 +0200 |
commit | 7418040c3ada8c57c436b2a2ff44fb490f6781f7 (patch) | |
tree | e47e588043d1ec6ae5f5f91076c1c3c150f8bc68 /conf-parser.c | |
parent | 67d51650ce3c3741bad8e5dca5d4e03c30f266cd (diff) |
conf-parser: fix strv parsing
Diffstat (limited to 'conf-parser.c')
-rw-r--r-- | conf-parser.c | 2 |
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))) |