tracker r1853 - in branches/indexer-split: . src/tracker-indexer/modules



Author: pvanhoof
Date: Fri Jul  4 08:43:38 2008
New Revision: 1853
URL: http://svn.gnome.org/viewvc/tracker?rev=1853&view=rev

Log:
2008-07-04  Philip Van Hoof  <pvanhoof gnome org>

        * src/tracker-indexer/modules/evolution.c: Avoid a crash in case the
        url string of a Evolution account is empty.



Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/src/tracker-indexer/modules/evolution.c

Modified: branches/indexer-split/src/tracker-indexer/modules/evolution.c
==============================================================================
--- branches/indexer-split/src/tracker-indexer/modules/evolution.c	(original)
+++ branches/indexer-split/src/tracker-indexer/modules/evolution.c	Fri Jul  4 08:43:38 2008
@@ -270,7 +270,7 @@
         gchar *account_name = NULL;
 
         if ( strlen (imap_uri) < 7 || at == NULL ) {
-                return NULL;
+                return g_strdup ("Unknown");
         }
 
         if (semic < at) {
@@ -306,7 +306,7 @@
 
         element = g_markup_parse_context_get_element (context);
 
-        if (strcmp (element, "url") != 0) {
+        if (text_len > 0 && strcmp (element, "url") != 0) {
                 return;
         }
 



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