balsa r7882 - in trunk: . libbalsa



Author: PeterB
Date: Mon Mar  3 14:30:21 2008
New Revision: 7882
URL: http://svn.gnome.org/viewvc/balsa?rev=7882&view=rev

Log:
do not crash when mindex == NULL

Modified:
   trunk/ChangeLog
   trunk/libbalsa/mailbox.c

Modified: trunk/libbalsa/mailbox.c
==============================================================================
--- trunk/libbalsa/mailbox.c	(original)
+++ trunk/libbalsa/mailbox.c	Mon Mar  3 14:30:21 2008
@@ -1903,7 +1903,7 @@
     retval = LIBBALSA_MAILBOX_GET_CLASS(mailbox)->
 	messages_change_flags(mailbox, msgnos, set, clear);
 
-    if (retval && mailbox->view_filter) {
+    if (retval && mailbox->mindex && mailbox->view_filter) {
         LibBalsaMailboxSearchIter *iter_view =
             libbalsa_mailbox_search_iter_view(mailbox);
         for (i = 0; i < msgnos->len; i++) {



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