* src/folder.c
authorChristoph Hohmann <reboot@gmx.ch>
Thu, 14 Nov 2002 19:50:22 +0000 (19:50 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Thu, 14 Nov 2002 19:50:22 +0000 (19:50 +0000)
        fix wrong position of NULL pointer check found
        by Sergey

ChangeLog.claws
configure.in
src/folder.c

index e653c0e..ae8f674 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-14 [christoph] 0.8.5claws151
+
+       * src/folder.c
+               fix wrong position of NULL pointer check found
+               by Sergey
+
 2002-11-14 [christoph] 0.8.5claws150
 
        * src/folder.c
index 43f5c3b..cc9d596 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws150
+EXTRA_VERSION=claws151
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 5f81a6f..1136b92 100644 (file)
@@ -2011,10 +2011,10 @@ gint folder_item_remove_msgs(FolderItem *item, GSList *msglist)
        Folder *folder;
        gint ret = 0;
 
+       g_return_val_if_fail(item != NULL, -1);
        folder = item->folder;
+       g_return_val_if_fail(folder != NULL, -1);
 
-       g_return_val_if_fail(item != NULL, -1);
-       
        if (!item->cache) folder_item_read_cache(item);
 
        if (folder->remove_msgs) {