diff options
author | Haithem BEN GHORBAL <haithem.benghorbal@gmail.com> | 2016-02-08 16:21:49 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2016-02-15 17:37:58 +0100 |
commit | 2a568fa218192ed50c5fe90304e8f83faf1f2cc2 (patch) | |
tree | 2a4060674df2d90e804f9e3a68e42629f885301b /src/tracker | |
parent | 3aab6a54b815cd45de9a0f618a5afa3a8f8bed48 (diff) | |
download | tracker-2a568fa218192ed50c5fe90304e8f83faf1f2cc2.tar.gz |
Tracker: fix possible dereference of null pointer
Diffstat (limited to 'src/tracker')
-rw-r--r-- | 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 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; } |