tracker r1864 - in branches/indexer-split: . src/tracker-indexer
- From: carlosg svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1864 - in branches/indexer-split: . src/tracker-indexer
- Date: Fri, 4 Jul 2008 13:45:32 +0000 (UTC)
Author: carlosg
Date: Fri Jul 4 13:45:32 2008
New Revision: 1864
URL: http://svn.gnome.org/viewvc/tracker?rev=1864&view=rev
Log:
2008-07-04 Carlos Garnacho <carlos imendio com>
* src/tracker-indexer/tracker-indexer.c (index_metadata_foreach):
Avoid a crash.
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/tracker-indexer/tracker-indexer.c
Modified: branches/indexer-split/src/tracker-indexer/tracker-indexer.c
==============================================================================
--- branches/indexer-split/src/tracker-indexer/tracker-indexer.c (original)
+++ branches/indexer-split/src/tracker-indexer/tracker-indexer.c Fri Jul 4 13:45:32 2008
@@ -578,6 +578,8 @@
return;
}
+ data = (MetadataForeachData *) user_data;
+
/* Throttle indexer, value 9 is from older code, why 9? */
throttle = tracker_config_get_throttle (data->config);
if (throttle > 9) {
@@ -587,7 +589,6 @@
/* Parse */
field = tracker_ontology_get_field_def ((gchar *) key);
- data = (MetadataForeachData *) user_data;
parsed_value = tracker_parser_text_to_string ((gchar *) value,
data->language,
tracker_config_get_max_word_length (data->config),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]