doczkal / rpms / abrt

Forked from rpms/abrt 4 years ago
Clone

Blame SOURCES/0145-cli-remove-useless-code-from-print_crash.patch

a60cd7
From bb703d67bbb82ab0b71c9fc7560754f943dc86be Mon Sep 17 00:00:00 2001
a60cd7
From: Jakub Filak <jfilak@redhat.com>
a60cd7
Date: Thu, 9 Jul 2015 11:54:15 +0200
a60cd7
Subject: [PATCH] cli: remove useless code from print_crash()
a60cd7
a60cd7
Revealed by coverity.
a60cd7
a60cd7
Related: #1224984
a60cd7
a60cd7
Signed-off-by: Jakub Filak <jfilak@redhat.com>
a60cd7
---
a60cd7
 src/cli/list.c | 3 +--
a60cd7
 1 file changed, 1 insertion(+), 2 deletions(-)
a60cd7
a60cd7
diff --git a/src/cli/list.c b/src/cli/list.c
a60cd7
index 909d36d..49c3e30 100644
a60cd7
--- a/src/cli/list.c
a60cd7
+++ b/src/cli/list.c
a60cd7
@@ -63,11 +63,10 @@ static void print_crash(problem_data_t *problem_data, int detailed, int text_siz
a60cd7
     char *desc;
a60cd7
     if (detailed)
a60cd7
     {
a60cd7
-        int show_multiline = (detailed ? MAKEDESC_SHOW_MULTILINE : 0);
a60cd7
         desc = make_description(problem_data,
a60cd7
                                 /*names_to_skip:*/ NULL,
a60cd7
                                 /*max_text_size:*/ text_size,
a60cd7
-                                MAKEDESC_SHOW_FILES | show_multiline);
a60cd7
+                                MAKEDESC_SHOW_FILES | MAKEDESC_SHOW_MULTILINE);
a60cd7
     }
a60cd7
     else
a60cd7
     {
a60cd7
-- 
a60cd7
2.4.3
a60cd7