diff options
author | Benjamin Otte <otte@redhat.com> | 2015-08-01 05:49:54 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-08-01 05:50:20 +0200 |
commit | 186e94bafb2880e8947ac45c6216e637605f98fd (patch) | |
tree | 408a8eb15a2e818ac8f231a96c52681cbad91da0 /gtk/gtksearchenginetracker.c | |
parent | 93171cf4f346c0a5e71f274d012c3cacfe3880ba (diff) | |
download | gtk+-186e94bafb2880e8947ac45c6216e637605f98fd.tar.gz |
searchenginetracker: Ignore NULL directories
Diffstat (limited to 'gtk/gtksearchenginetracker.c')
-rw-r--r-- | gtk/gtksearchenginetracker.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c index bac7a09afd..f284a3ccd3 100644 --- a/gtk/gtksearchenginetracker.c +++ b/gtk/gtksearchenginetracker.c @@ -536,6 +536,9 @@ get_indexed_locations (GtkSearchEngineTracker *engine) for (i = 0; locations[i] != NULL; i++) { path = path_from_tracker_dir (locations[i]); + if (path == NULL) + continue; + location = g_file_new_for_path (path); g_ptr_array_add (engine->indexed_locations, location); } |