2005-08-03 [colin] 1.9.13cvs9
authorColin Leroy <colin@colino.net>
Wed, 3 Aug 2005 06:38:19 +0000 (06:38 +0000)
committerColin Leroy <colin@colino.net>
Wed, 3 Aug 2005 06:38:19 +0000 (06:38 +0000)
* src/folderview.c
Fix possible crash

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/folderview.c

index 97aae35c898f2688c915bbbfae8b549ded9ed565..5ae2dcc764b43a42c47f4068242eda2080fc89fd 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-03 [colin]     1.9.13cvs9
+
+       * src/folderview.c
+               Fix possible crash
+
 2005-08-02 [colin]     1.9.13cvs8
 
        * src/mainwindow.c
index 324d9da300e39c295e81ca84580a381cd4ccaa16..945c134821e1bbe4c5d4d6933e5863590e42b808 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.213.2.44 -r 1.213.2.45 src/folder.c;  ) > 1.9.13cvs6.patchset
 ( cvs diff -u -r 1.87.2.13 -r 1.87.2.14 src/folder.h;  ) > 1.9.13cvs7.patchset
 ( cvs diff -u -r 1.60.2.21 -r 1.60.2.22 src/addressbook.c;  cvs diff -u -r 1.5.2.1 -r 1.5.2.2 src/addressitem.h;  cvs diff -u -r 1.274.2.47 -r 1.274.2.48 src/mainwindow.c;  ) > 1.9.13cvs8.patchset
+( cvs diff -u -r 1.207.2.49 -r 1.207.2.50 src/folderview.c;  ) > 1.9.13cvs9.patchset
index 93d5265d467487da9f81e231ddb6679b77ae7541..f3bc9602a0742872000321c50149fab18c51bccf 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=13
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=8
+EXTRA_VERSION=9
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 493749232ddd8d7650f394e2be1aafa723115b18..5a2be29bee78ce63eaa9eb7b00d46366035560fd 100644 (file)
@@ -1023,7 +1023,12 @@ static gboolean folderview_have_unread_children_sub(FolderView *folderview,
                                                    FolderItem *item, 
                                                    gboolean in_sub)
 {
-       GNode *node = item->folder->node;
+       GNode *node = NULL;
+       
+       if (!item || !item->folder || !item->folder->node)
+               return FALSE;
+       
+       node = item->folder->node;
        
        node = g_node_find(node, G_PRE_ORDER, G_TRAVERSE_ALL, item);
        node = node->children;