Blame SOURCES/0065-rescue-initialize-CLEANUP-pointer-variable.patch

151578
From d4d3e90ad9c9e144171ece825f60cb804449f835 Mon Sep 17 00:00:00 2001
151578
From: Pino Toscano <ptoscano@redhat.com>
151578
Date: Mon, 23 Oct 2017 17:44:23 +0200
151578
Subject: [PATCH] rescue: initialize CLEANUP pointer variable
151578
151578
This way it will not try to free uninitialized memory when going out of
151578
scope, and the inspector mode is not enabled.
151578
151578
Fixes commit 3637c42f4e521eb647d7dfae7f48eb1689d0af54.
151578
151578
(cherry picked from commit 0942241395b7faf02fd651a0d7b99628458febe4)
151578
---
151578
 rescue/escape.c | 2 +-
151578
 1 file changed, 1 insertion(+), 1 deletion(-)
151578
151578
diff --git a/rescue/escape.c b/rescue/escape.c
151578
index d6dc9d329..ae4919f69 100644
151578
--- a/rescue/escape.c
151578
+++ b/rescue/escape.c
151578
@@ -236,7 +236,7 @@ print_help (void)
151578
 static void
151578
 print_inspector (void)
151578
 {
151578
-  CLEANUP_FREE_STRING_LIST char **roots;
151578
+  CLEANUP_FREE_STRING_LIST char **roots = NULL;
151578
   size_t i;
151578
   const char *root;
151578
   char *str;
151578
-- 
151578
2.14.3
151578