* src/prefs_gtk.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 1 Nov 2003 21:54:25 +0000 (21:54 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 1 Nov 2003 21:54:25 +0000 (21:54 +0000)
prefs_write_param(): fail when we see an invalid type; all the
callers seem to handle this gracefully by reverting changes

ChangeLog.claws
configure.ac
src/prefs_gtk.c

index 5468728..4ec2467 100644 (file)
@@ -1,3 +1,9 @@
+2003-11-01 [alfons]    0.9.6claws62
+
+       * src/prefs_gtk.c
+               prefs_write_param(): fail when we see an invalid type; all the
+               callers seem to handle this gracefully by reverting changes
+
 2003-10-30 [christoph] 0.9.6claws61
 
        * configure.ac
index 5959301..a00f176 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=61
+EXTRA_VERSION=62
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 1cbc09d..b725c42 100644 (file)
@@ -301,7 +301,9 @@ gint prefs_write_param(PrefParam *param, FILE *fp)
                        }
                        break;
                default:
-                       buf[0] = '\0';
+                       /* unrecognized, fail */
+                       debug_print("Unrecognized parameter type\n");
+                       return -1;
                }
 
                if (buf[0] != '\0') {