2009-08-23 [colin] 3.7.2cvs26
authorColin Leroy <colin@colino.net>
Sun, 23 Aug 2009 12:16:17 +0000 (12:16 +0000)
committerColin Leroy <colin@colino.net>
Sun, 23 Aug 2009 12:16:17 +0000 (12:16 +0000)
* src/mbox.c
Probably fix RH bug 512024, " folder.c:3543
Condition msglist != NULL failed"

ChangeLog
PATCHSETS
configure.ac
src/mbox.c

index 27a7fb2..f5f05b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-23 [colin]     3.7.2cvs26
+
+       * src/mbox.c
+               Probably fix RH bug 512024, " folder.c:3543 
+               Condition msglist != NULL failed"
+
 2009-08-23 [colin]     3.7.2cvs25
 
        * src/prefs_compose_writing.c
index 014850a..f17e295 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.382.2.521 -r 1.382.2.522 src/compose.c;  ) > 3.7.2cvs23.patchset
 ( cvs diff -u -r 1.382.2.522 -r 1.382.2.523 src/compose.c;  ) > 3.7.2cvs24.patchset
 ( cvs diff -u -r 1.1.2.27 -r 1.1.2.28 src/prefs_compose_writing.c;  ) > 3.7.2cvs25.patchset
+( cvs diff -u -r 1.28.2.48 -r 1.28.2.49 src/mbox.c;  ) > 3.7.2cvs26.patchset
index bd17c87..50d187c 100644 (file)
@@ -12,7 +12,7 @@ MINOR_VERSION=7
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=25
+EXTRA_VERSION=26
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index df32656..339a0d4 100644 (file)
@@ -279,10 +279,12 @@ gint proc_mbox(FolderItem *dest, const gchar *mbox, gboolean apply_filter,
                }
 
                unfiltered = g_slist_reverse(unfiltered);
-               folder_item_move_msgs(dest, unfiltered);
-               for (cur = unfiltered; cur; cur = g_slist_next(cur)) {
-                       MsgInfo *info = (MsgInfo *)cur->data;
-                       procmsg_msginfo_free(info);
+               if (unfiltered) {
+                       folder_item_move_msgs(dest, unfiltered);
+                       for (cur = unfiltered; cur; cur = g_slist_next(cur)) {
+                               MsgInfo *info = (MsgInfo *)cur->data;
+                               procmsg_msginfo_free(info);
+                       }
                }
 
                g_slist_free(unfiltered);