tracker r1547 - in branches/indexer-split: . src/libtracker-common



Author: carlosg
Date: Fri May 30 13:17:48 2008
New Revision: 1547
URL: http://svn.gnome.org/viewvc/tracker?rev=1547&view=rev

Log:
2008-05-30  Carlos Garnacho  <carlos imendio com>

        * src/libtracker-common/tracker-parser.c
        (tracker_parser_text_into_array): reverse wrongly passed arguments to
        tracker_parser_text_to_string(). Also strip leading and trailing
        whitespaces in order not to end with "\0" strings in the array.


Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/src/libtracker-common/tracker-parser.c

Modified: branches/indexer-split/src/libtracker-common/tracker-parser.c
==============================================================================
--- branches/indexer-split/src/libtracker-common/tracker-parser.c	(original)
+++ branches/indexer-split/src/libtracker-common/tracker-parser.c	Fri May 30 13:17:48 2008
@@ -443,12 +443,12 @@
 
         s = tracker_parser_text_to_string (text, 
                                            language, 
-                                           min_word_length,
                                            max_word_length,
+                                           min_word_length,
                                            TRUE, 
                                            FALSE, 
                                            FALSE);
-        strv = g_strsplit (s, " ", -1);
+        strv = g_strsplit (g_strstrip (s), " ", -1);
 	g_free (s);
 
 	return strv;



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