dab265
From 67a3328fbdecd1d81431cc6380de5b3f2d628def Mon Sep 17 00:00:00 2001
dab265
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
dab265
Date: Thu, 6 Aug 2015 23:47:46 -0400
dab265
Subject: [PATCH] load-fragment: fix segv on parse error
dab265
dab265
https://bugzilla.redhat.com/show_bug.cgi?id=1251334
dab265
---
dab265
 src/core/load-fragment.c | 2 +-
dab265
 1 file changed, 1 insertion(+), 1 deletion(-)
dab265
dab265
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
dab265
index ba73cc4..2991721 100644
dab265
--- a/src/core/load-fragment.c
dab265
+++ b/src/core/load-fragment.c
dab265
@@ -1986,7 +1986,7 @@ int config_parse_environ(const char *unit,
dab265
                 return log_oom();
dab265
 
dab265
         FOREACH_WORD_QUOTED(word, l, k, state) {
dab265
-                _cleanup_free_ char *n;
dab265
+                _cleanup_free_ char *n = NULL;
dab265
                 char **x;
dab265
 
dab265
                 r = cunescape_length(word, l, 0, &n);
dab265
-- 
dab265
2.4.3
dab265