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

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