diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-08-06 23:47:46 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-08-07 00:07:39 -0400 |
commit | 67a3328fbdecd1d81431cc6380de5b3f2d628def (patch) | |
tree | 0b5819138c6a22e2418bfb3f143e2ca502e6c577 /src/core | |
parent | b32545ff19364fe75240dc99bcc0ec6861d1bc61 (diff) |
load-fragment: fix segv on parse error
https://bugzilla.redhat.com/show_bug.cgi?id=1251334
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/load-fragment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index ba73cc410e..299172123e 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -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); |