Blob Blame Raw
From cc9c66d11d96ac180a2e927a089b6fc75913a8a6 Mon Sep 17 00:00:00 2001
From: Matej Habrnal <mhabrnal@redhat.com>
Date: Tue, 20 Jun 2017 14:28:34 +0200
Subject: [PATCH 04/27] a-d-journal-core: fix bad condition in creating reason
 msg

Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
---
 src/plugins/abrt-dump-journal-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/abrt-dump-journal-core.c b/src/plugins/abrt-dump-journal-core.c
index 971211e..ebc84e5 100644
--- a/src/plugins/abrt-dump-journal-core.c
+++ b/src/plugins/abrt-dump-journal-core.c
@@ -288,7 +288,7 @@ save_systemd_coredump_in_dump_directory(struct dump_dir *dd, struct crash_info *
     dd_save_text(dd, FILENAME_ANALYZER, "abrt-journal-core");
 
     char *reason;
-    if (info->ci_signal_name != NULL)
+    if (info->ci_signal_name == NULL)
         reason = xasprintf("%s killed by signal %d", info->ci_executable_name, info->ci_signal_no);
     else
         reason = xasprintf("%s killed by SIG%s", info->ci_executable_name, info->ci_signal_name);
-- 
2.9.5