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

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