tracker r3159 - in trunk: . src/tracker-indexer



Author: carlosg
Date: Wed Apr  1 12:15:36 2009
New Revision: 3159
URL: http://svn.gnome.org/viewvc/tracker?rev=3159&view=rev

Log:
2009-04-01  Carlos Garnacho  <carlos imendio com>

        * src/tracker-indexer/tracker-indexer.c (mount_pre_unmount_cb): Check
        that there's actually a current item before checking whether it's
        inside the mount.

Modified:
   trunk/ChangeLog
   trunk/src/tracker-indexer/tracker-indexer.c

Modified: trunk/src/tracker-indexer/tracker-indexer.c
==============================================================================
--- trunk/src/tracker-indexer/tracker-indexer.c	(original)
+++ trunk/src/tracker-indexer/tracker-indexer.c	Wed Apr  1 12:15:36 2009
@@ -578,7 +578,8 @@
 	/* Now cancel current element if it's also in the mount */
 	current_info = g_queue_peek_head (indexer->private->file_queue);
 
-	if (g_file_has_prefix (current_info->file, mount_root)) {
+	if (current_info &&
+	    g_file_has_prefix (current_info->file, mount_root)) {
 		tracker_module_file_cancel (current_info->module_file);
 	}
 



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