[gnome-photos/bilelmoussaoui/tracker-crash] tracker: Correctly pass IndexLocation flags




commit 7a5fc65551fe21df9eccb0dd88a4cb4f0cff4c69
Author: Bilal Elmoussaoui <belmouss redhat com>
Date:   Fri Jan 21 15:35:55 2022 +0100

    tracker: Correctly pass IndexLocation flags
    
    Otherwise g_variant_new_strv would fail at figuring out
    the number of items which would make the application crash
    
    Fixes #175

 src/photos-application.c               | 2 +-
 src/photos-tracker-import-controller.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 21a7eb26..e8ddd63a 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1256,7 +1256,7 @@ photos_application_import_file_copy (GObject *source_object, GAsyncResult *res,
   else
     {
       const gchar *tracker_priority_graphs[] = { PHOTOS_PICTURES_GRAPH };
-      const gchar *tracker_index_location_flags[] = { };
+      const gchar *tracker_index_location_flags[] = { NULL };
       g_autofree gchar *destination_uri = NULL;
 
       g_assert_true (G_IS_FILE (destination));
diff --git a/src/photos-tracker-import-controller.c b/src/photos-tracker-import-controller.c
index 6ef86009..1c1c800f 100644
--- a/src/photos-tracker-import-controller.c
+++ b/src/photos-tracker-import-controller.c
@@ -179,7 +179,7 @@ photos_tracker_import_controller_next_files (GObject *source_object, GAsyncResul
                 const gchar *mime_type;
                 gboolean indexing = FALSE;
                 const gchar *tracker_priority_graphs[] = { PHOTOS_PICTURES_GRAPH };
-                const gchar *tracker_index_location_flags[] = { };
+                const gchar *tracker_index_location_flags[] = { NULL };
                 guint i;
                 guint n_elements;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]