[gtk+] searchenginetracker: Ignore NULL directories
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] searchenginetracker: Ignore NULL directories
- Date: Sat, 1 Aug 2015 05:25:25 +0000 (UTC)
commit 186e94bafb2880e8947ac45c6216e637605f98fd
Author: Benjamin Otte <otte redhat com>
Date: Sat Aug 1 05:49:54 2015 +0200
searchenginetracker: Ignore NULL directories
gtk/gtksearchenginetracker.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c
index bac7a09..f284a3c 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]