forked from AuroraMiddleware/gtk
searchenginetracker: Ignore NULL directories
This commit is contained in:
parent
93171cf4f3
commit
186e94bafb
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user