mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
load-fragment: fix segv on parse error
https://bugzilla.redhat.com/show_bug.cgi?id=1251334
This commit is contained in:
parent
b32545ff19
commit
67a3328fbd
@ -1986,7 +1986,7 @@ int config_parse_environ(const char *unit,
|
|||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
FOREACH_WORD_QUOTED(word, l, k, state) {
|
FOREACH_WORD_QUOTED(word, l, k, state) {
|
||||||
_cleanup_free_ char *n;
|
_cleanup_free_ char *n = NULL;
|
||||||
char **x;
|
char **x;
|
||||||
|
|
||||||
r = cunescape_length(word, l, 0, &n);
|
r = cunescape_length(word, l, 0, &n);
|
||||||
|
Loading…
Reference in New Issue
Block a user