Blame SOURCES/0260-gui-wizard-gtk-Fix-never-read-assignment.patch

28bab8
From 38fad2d00f62f16d052cae0ed2cfe076956d2adc Mon Sep 17 00:00:00 2001
28bab8
From: Ernestas Kulik <ekulik@redhat.com>
28bab8
Date: Wed, 29 May 2019 10:06:33 +0200
28bab8
Subject: [PATCH] gui-wizard-gtk: Fix never-read assignment
28bab8
28bab8
Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
28bab8
---
28bab8
 src/gui-wizard-gtk/wizard.c | 4 +++-
28bab8
 1 file changed, 3 insertions(+), 1 deletion(-)
28bab8
28bab8
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
28bab8
index b9b27fe..89b3a2c 100644
28bab8
--- a/src/gui-wizard-gtk/wizard.c
28bab8
+++ b/src/gui-wizard-gtk/wizard.c
28bab8
@@ -2764,11 +2764,13 @@ static char *get_next_processed_event(GList **events_list)
28bab8
         char *expanded_events = list_possible_events(dd, g_dump_dir_name, event_name);
28bab8
 
28bab8
         dd_close(dd);
28bab8
+
28bab8
         free(event_name);
28bab8
+        event_name = expanded_events;
28bab8
 
28bab8
         GList *expanded_list = NULL;
28bab8
         /* add expanded events from event having trailing '*' */
28bab8
-        char *next = event_name = expanded_events;
28bab8
+        char *next;
28bab8
         while ((next = strchr(event_name, '\n')))
28bab8
         {
28bab8
             /* 'event1\0event2\nevent3\n' */
28bab8
-- 
28bab8
2.21.0
28bab8