1
1
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:
Zbigniew Jędrzejewski-Szmek 2015-08-06 23:47:46 -04:00
parent b32545ff19
commit 67a3328fbd

View File

@ -1986,7 +1986,7 @@ int config_parse_environ(const char *unit,
return log_oom();
FOREACH_WORD_QUOTED(word, l, k, state) {
_cleanup_free_ char *n;
_cleanup_free_ char *n = NULL;
char **x;
r = cunescape_length(word, l, 0, &n);