Blame SOURCES/0248-coverity-fix-def6.patch

4b6aa8
From 22bc9088801e5f626f3a6409318e1593b457f701 Mon Sep 17 00:00:00 2001
4b6aa8
From: Matej Habrnal <mhabrnal@redhat.com>
4b6aa8
Date: Wed, 18 Jul 2018 15:07:45 +0000
4b6aa8
Subject: [PATCH] coverity fix [#def6]
4b6aa8
4b6aa8
libreport-2.9.5/src/gui-wizard-gtk/wizard.c:819:5: warning: 1st function call
4b6aa8
argument is an uninitialized value
4b6aa8
4b6aa8
https://cov01.lab.eng.brq.redhat.com/el8-results/el8/libreport-2.9.5-2.el8+7/scan-results.html#def6
4b6aa8
4b6aa8
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
4b6aa8
4b6aa8
4b6aa8
(cherry picked from commit 79650f521dc70535bf731ae3139860aef3e301b0)
4b6aa8
---
4b6aa8
 src/gui-wizard-gtk/wizard.c | 2 +-
4b6aa8
 1 file changed, 1 insertion(+), 1 deletion(-)
4b6aa8
4b6aa8
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
4b6aa8
index 35c6fc3..b4b2c3d 100644
4b6aa8
--- a/src/gui-wizard-gtk/wizard.c
4b6aa8
+++ b/src/gui-wizard-gtk/wizard.c
4b6aa8
@@ -813,7 +813,7 @@ static void tv_details_row_activated(
4b6aa8
                         GtkTreeViewColumn *column,
4b6aa8
                         gpointer           user_data)
4b6aa8
 {
4b6aa8
-    gchar *item_name;
4b6aa8
+    gchar *item_name = NULL;
4b6aa8
     struct problem_item *item = get_current_problem_item_or_NULL(tree_view, &item_name);
4b6aa8
     if (!item || !(item->flags & CD_FLAG_TXT))
4b6aa8
         goto ret;
4b6aa8
-- 
4b6aa8
2.21.0
4b6aa8