balsa r7881 - in branches/mailbox-gsequence: . libbalsa



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

Log:
do not crash when mindex == NULL

Modified:
   branches/mailbox-gsequence/ChangeLog
   branches/mailbox-gsequence/libbalsa/mailbox.c

Modified: branches/mailbox-gsequence/libbalsa/mailbox.c
==============================================================================
--- branches/mailbox-gsequence/libbalsa/mailbox.c	(original)
+++ branches/mailbox-gsequence/libbalsa/mailbox.c	Mon Mar  3 14:26:58 2008
@@ -1982,7 +1982,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]