more stringent checks for NULL params when writing filtering actions to a file
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 17 Mar 2002 14:05:37 +0000 (14:05 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 17 Mar 2002 14:05:37 +0000 (14:05 +0000)
ChangeLog.claws
configure.in
src/matcher.c

index e10ea6f..789df7c 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-17 [alfons]    0.7.4claws20
+
+       * src/matcher.c
+               more stringent checks for NULL params when writing
+               filtering actions to a file
+               
 2002-03-17 [hoa]       0.7.3claws20
 
        * src/news.c
index 5147e4f..4deeda2 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=4
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws20
+EXTRA_VERSION=claws21
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 18526a3..f858781 100644 (file)
@@ -1061,8 +1061,11 @@ static void prefs_filtering_write(FILE * fp, GSList * prefs_scoring)
                gchar *filtering_str;
                FilteringProp * prop;
 
-               prop = (FilteringProp *) cur->data;
-               filtering_str = filteringprop_to_string(prop);
+               if (NULL == (prop = (FilteringProp *) cur->data))
+                       continue;
+               
+               if (NULL == (filtering_str = filteringprop_to_string(prop)))
+                       continue;
                
                if (fputs(filtering_str, fp) == EOF ||
                    fputc('\n', fp) == EOF) {