27 lines
868 B
Diff
27 lines
868 B
Diff
|
From 67a3328fbdecd1d81431cc6380de5b3f2d628def Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
||
|
Date: Thu, 6 Aug 2015 23:47:46 -0400
|
||
|
Subject: [PATCH] load-fragment: fix segv on parse error
|
||
|
|
||
|
https://bugzilla.redhat.com/show_bug.cgi?id=1251334
|
||
|
---
|
||
|
src/core/load-fragment.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
|
||
|
index ba73cc4..2991721 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);
|
||
|
--
|
||
|
2.4.3
|
||
|
|