1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

conf-parser: fix strv parsing

This commit is contained in:
Lennart Poettering 2010-04-06 21:52:35 +02:00
parent 67d51650ce
commit 7418040c3a

View File

@ -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)))