searchenginetracker: Ignore NULL directories
This commit is contained in:
@ -536,6 +536,9 @@ get_indexed_locations (GtkSearchEngineTracker *engine)
|
|||||||
for (i = 0; locations[i] != NULL; i++)
|
for (i = 0; locations[i] != NULL; i++)
|
||||||
{
|
{
|
||||||
path = path_from_tracker_dir (locations[i]);
|
path = path_from_tracker_dir (locations[i]);
|
||||||
|
if (path == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
location = g_file_new_for_path (path);
|
location = g_file_new_for_path (path);
|
||||||
g_ptr_array_add (engine->indexed_locations, location);
|
g_ptr_array_add (engine->indexed_locations, location);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user