[tracker] libtracker-data: getting FTS multivalued properties used unintialised variable



commit 1a381d5329e0a6eae5cd39f00a7873f666a34e93
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Mar 6 20:58:33 2014 +0000

    libtracker-data: getting FTS multivalued properties used unintialised variable

 src/libtracker-data/tracker-data-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index bcac0d8..abff7b4 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -3565,6 +3565,7 @@ ontology_get_fts_properties (gboolean     only_new,
                }
 
                has_new |= tracker_property_get_is_new (properties[i]);
+               table_name = tracker_property_get_table_name (properties[i]);
 
                if (multivalued &&
                    tracker_property_get_multiple_values (properties[i])) {
@@ -3572,7 +3573,6 @@ ontology_get_fts_properties (gboolean     only_new,
                                             GUINT_TO_POINTER (TRUE));
                }
 
-               table_name = tracker_property_get_table_name (properties[i]);
                name = tracker_property_get_name (properties[i]);
                list = g_hash_table_lookup (hashtable, table_name);
 


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