* src/procmsg.c
authorChristoph Hohmann <reboot@gmx.ch>
Tue, 30 Jul 2002 12:16:58 +0000 (12:16 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Tue, 30 Jul 2002 12:16:58 +0000 (12:16 +0000)
        check if folder_item_get_msginfo in
        procmsg_save_to_outbox returned NULL

ChangeLog.claws
configure.in
src/procmsg.c

index 2f4f8e8..134c9c0 100644 (file)
@@ -1,3 +1,9 @@
+2002-07-30 [christoph] 0.8.0claws27
+
+       * src/procmsg.c
+               check if folder_item_get_msginfo in
+               procmsg_save_to_outbox returned NULL
+
 2002-07-30 [paul]      0.8.0claws26
 
        * sync with 0.8.1cvs4
index 03dbb3a..79fe25c 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws26
+EXTRA_VERSION=claws27
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 64a501e..2515c29 100644 (file)
@@ -938,8 +938,10 @@ gint procmsg_save_to_outbox(FolderItem *outbox, const gchar *file,
                return -1;
        }
        msginfo = folder_item_fetch_msginfo(outbox, num);
-       procmsg_msginfo_unset_flags(msginfo, ~0, ~0);
-       procmsg_msginfo_free(msginfo);
+       if(msginfo != NULL) {
+           procmsg_msginfo_unset_flags(msginfo, ~0, ~0);
+           procmsg_msginfo_free(msginfo);
+       }
 
        if(is_queued) {
                unlink(file);