From: Lennart Poettering Date: Tue, 6 Apr 2010 19:52:35 +0000 (+0200) Subject: conf-parser: fix strv parsing X-Git-Tag: 0.git+20100605+dfd8ee-1~255 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7418040c3ada8c57c436b2a2ff44fb490f6781f7;p=systemd conf-parser: fix strv parsing --- diff --git a/conf-parser.c b/conf-parser.c index 8883d9ed..5da55874 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)))