Blame SOURCES/0245-coverity-Remove-deadcode-def47.patch

28bab8
From ff367c32ff0916f6ab674a46770af7a695850433 Mon Sep 17 00:00:00 2001
28bab8
From: Martin Kutlak <mkutlak@redhat.com>
28bab8
Date: Tue, 21 Aug 2018 11:06:51 +0000
28bab8
Subject: [PATCH] coverity: Remove deadcode #def47
28bab8
28bab8
Value of not_reportable was already checked for NULL/empty value and
28bab8
therefore the ternary expression must be True and will never result in """".
28bab8
28bab8
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
28bab8
28bab8
28bab8
(cherry picked from commit 94ffb1d8287530ed0fb87b8aa7d693ba754a9387)
28bab8
---
28bab8
 src/report-newt/report-newt.c | 5 ++---
28bab8
 1 file changed, 2 insertions(+), 3 deletions(-)
28bab8
28bab8
diff --git a/src/report-newt/report-newt.c b/src/report-newt/report-newt.c
28bab8
index 2427d86..a51e4f7 100644
28bab8
--- a/src/report-newt/report-newt.c
28bab8
+++ b/src/report-newt/report-newt.c
28bab8
@@ -328,9 +328,8 @@ static int report(const char *dump_dir_name)
28bab8
     {
28bab8
         char *reason = dd_load_text_ext(dd, FILENAME_REASON, 0
28bab8
                                         | DD_LOAD_TEXT_RETURN_NULL_ON_FAILURE);
28bab8
-        char *t = xasprintf("%s%s%s",
28bab8
-                            not_reportable ? : "",
28bab8
-                            not_reportable ? " " : "",
28bab8
+        char *t = xasprintf("%s %s",
28bab8
+                            not_reportable,
28bab8
                             reason ? : _("(no description)"));
28bab8
 
28bab8
         newtWinMessage(_("Error"), _("Ok"), (char *)"%s", t);
28bab8
-- 
28bab8
2.21.0
28bab8