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-07 00:07:39 -04:00
parent b32545ff19
commit 67a3328fbd
+1 -1
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);