* src/procmime.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 25 Jan 2004 17:43:34 +0000 (17:43 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 25 Jan 2004 17:43:34 +0000 (17:43 +0000)
add NULL pointer check for mimeinfo->node in
procmime_mimeinfo_parent()

ChangeLog.claws
configure.ac
src/procmime.c

index aab9876..2bf09ee 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-25 [alfons]    0.9.8claws51
+
+       * src/procmime.c
+               add NULL pointer check for mimeinfo->node in
+               procmime_mimeinfo_parent()
+
 2004-01-25 [darko]     0.9.8claws50
 
        * src/compose.c
index b1b935e..154872d 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=50
+EXTRA_VERSION=51
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 489c5ad..2a76be3 100644 (file)
@@ -158,6 +158,7 @@ void procmime_mimeinfo_replace(MimeInfo *old, MimeInfo *new)
 MimeInfo *procmime_mimeinfo_parent(MimeInfo *mimeinfo)
 {
        g_return_val_if_fail(mimeinfo != NULL, NULL);
+       g_return_val_if_fail(mimeinfo->node != NULL, NULL);
 
        if (mimeinfo->node->parent == NULL)
                return NULL;