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:
parent
67d51650ce
commit
7418040c3a
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user