From 7418040c3ada8c57c436b2a2ff44fb490f6781f7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 6 Apr 2010 21:52:35 +0200 Subject: [PATCH] conf-parser: fix strv parsing --- conf-parser.c | 2 ++ 1 file changed, 2 insertions(+) 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))) -- 2.39.5