summaryrefslogtreecommitdiff
path: root/src/tracker
diff options
context:
space:
mode:
authorHaithem BEN GHORBAL <haithem.benghorbal@gmail.com>2016-02-08 16:21:49 +0100
committerCarlos Garnacho <carlosg@gnome.org>2016-02-15 17:37:58 +0100
commit2a568fa218192ed50c5fe90304e8f83faf1f2cc2 (patch)
tree2a4060674df2d90e804f9e3a68e42629f885301b /src/tracker
parent3aab6a54b815cd45de9a0f618a5afa3a8f8bed48 (diff)
downloadtracker-2a568fa218192ed50c5fe90304e8f83faf1f2cc2.tar.gz
Tracker: fix possible dereference of null pointer
Diffstat (limited to 'src/tracker')
-rw-r--r--src/tracker/tracker-status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tracker/tracker-status.c b/src/tracker/tracker-status.c
index 69b044c32..12b76d2fd 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;
}