tracker r2108 - in branches/indexer-split: . src/trackerd
- From: ifrade svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2108 - in branches/indexer-split: . src/trackerd
- Date: Wed, 20 Aug 2008 11:35:09 +0000 (UTC)
Author: ifrade
Date: Wed Aug 20 11:35:08 2008
New Revision: 2108
URL: http://svn.gnome.org/viewvc/tracker?rev=2108&view=rev
Log:
Fixing a segfault in tracker_files_get_metadata_for_files_in_folder
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/trackerd/tracker-files.c
Modified: branches/indexer-split/src/trackerd/tracker-files.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-files.c (original)
+++ branches/indexer-split/src/trackerd/tracker-files.c Wed Aug 20 11:35:08 2008
@@ -756,6 +756,8 @@
}
}
+ defs [g_strv_length (fields)] = NULL;
+
if (g_str_has_suffix (uri, G_DIR_SEPARATOR_S)) {
/* Remove trailing 'G_DIR_SEPARATOR' */
@@ -797,7 +799,7 @@
} else {
gchar *display_field;
- display_field = tracker_ontology_get_display_field (defs[i]);
+ display_field = tracker_ontology_get_display_field (defs[i-1]);
g_string_append_printf (sql, ", M%d.%s ", i, display_field);
g_free (display_field);
needs_join[i - 1] = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]