Blob Blame Raw
From de12e078fc167fd1a818b101c1a21fcedf32a1a5 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Wed, 8 Jul 2015 17:03:55 +0200
Subject: [PATCH] cli: remove useless code from print_crash()

Revealed by coverity.

Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
 src/cli/list.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/cli/list.c b/src/cli/list.c
index 8bfb3cc..e8ec37b 100644
--- a/src/cli/list.c
+++ b/src/cli/list.c
@@ -63,11 +63,10 @@ static void print_crash(problem_data_t *problem_data, int detailed, int text_siz
     char *desc;
     if (detailed)
     {
-        int show_multiline = (detailed ? MAKEDESC_SHOW_MULTILINE : 0);
         desc = make_description(problem_data,
                                 /*names_to_skip:*/ NULL,
                                 /*max_text_size:*/ text_size,
-                                MAKEDESC_SHOW_FILES | show_multiline);
+                                MAKEDESC_SHOW_FILES | MAKEDESC_SHOW_MULTILINE);
     }
     else
     {
-- 
2.4.3