[tracker] Tracker: fix possible dereference of null pointer
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Tracker: fix possible dereference of null pointer
- Date: Mon, 15 Feb 2016 17:03:40 +0000 (UTC)
commit 2a568fa218192ed50c5fe90304e8f83faf1f2cc2
Author: Haithem BEN GHORBAL <haithem benghorbal gmail com>
Date: Mon Feb 8 16:21:49 2016 +0100
Tracker: fix possible dereference of null pointer
src/tracker/tracker-status.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker/tracker-status.c b/src/tracker/tracker-status.c
index 69b044c..12b76d2 100644
--- a/src/tracker/tracker-status.c
+++ b/src/tracker/tracker-status.c
@@ -545,7 +545,7 @@ get_file_and_folder_count (int *files,
if (error || !tracker_sparql_cursor_next (cursor, NULL, NULL)) {
g_printerr ("%s, %s\n",
_("Could not get basic status for Tracker"),
- error->message);
+ error ? error->message : _("No error given"));
g_error_free (error);
return EXIT_FAILURE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]