×
Close
The permissions on this repository are being updated. This may take a while.
During this time, you or some of the project's contributors may not be able
to push to this repository.
Blame SOURCES/0134-cli-do-not-exit-with-segfault-if-dbus-fails.patch
Branch: 4385ced908ea31d2c35eae06d1b6d0f7d1d4fb5f
47a88a
From 3270f452485f737c12f63bab11c3f1f62339f098 Mon Sep 17 00:00:00 2001
47a88a
From: Matej Habrnal <mhabrnal@redhat.com>
47a88a
Date: Mon, 4 May 2015 10:35:25 +0200
47a88a
Subject: [PATCH] cli: do not exit with segfault if dbus fails
47a88a
47a88a
There was a segfault when we ran 'abrt-cli list' and dbus failed.
47a88a
47a88a
Related to rhbz#1217901
47a88a
47a88a
Related: #1224984
47a88a
47a88a
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
47a88a
---
47a88a
src/cli/list.c | 2 ++
47a88a
1 file changed, 2 insertions(+)
47a88a
47a88a
diff --git a/src/cli/list.c b/src/cli/list.c
47a88a
index 1594906..b3b9066 100644
47a88a
--- a/src/cli/list.c
47a88a
+++ b/src/cli/list.c
47a88a
@@ -191,6 +191,8 @@ int cmd_list(int argc, const char **argv)
47a88a
parse_opts(argc, (char **)argv, program_options, program_usage_string);
47a88a
47a88a
vector_of_problem_data_t *ci = fetch_crash_infos();
47a88a
+ if (ci == NULL)
47a88a
+ return 1;
47a88a
47a88a
g_ptr_array_sort_with_data(ci, &cmp_problem_data, (char *) FILENAME_LAST_OCCURRENCE);
47a88a
47a88a
--
47a88a
2.4.3
47a88a