fix segfault in prefs_matcher_substitute_cb() when
authorMartin Schaaf <mascha@ma-scha.de>
Sun, 9 Feb 2003 14:07:20 +0000 (14:07 +0000)
committerMartin Schaaf <mascha@ma-scha.de>
Sun, 9 Feb 2003 14:07:20 +0000 (14:07 +0000)
no row is selected

ChangeLog.claws
configure.ac
src/prefs_matcher.c

index eca99551560a567f7ef43a62d1f8a677dd465856..a9177ad8cf51cb77b9ec58c44a95f9e426b7f273 100644 (file)
@@ -1,3 +1,9 @@
+2003-02-09 [martin]    0.8.9claws50
+
+       * src/prefs_matcher.c
+               fix segfault in prefs_matcher_substitute_cb() when
+               no row is selected
+
 2003-02-09 [paul]      0.8.9claws49
 
        * src/folderview.c
index b8c889574f0d7dbfffd1047aa6d0d704710efe45..030aa19f1cb67fa5cfcc51dd505967298775de1f 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=9
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws49
+EXTRA_VERSION=claws50
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index e6dcb05042ac7bd609abd97ba338d8af2eace357..2ce214b223baf69e7a3e12e278e4022b355768e8 100644 (file)
@@ -1212,6 +1212,7 @@ static void prefs_matcher_substitute_cb(void)
        gint row;
        MatcherProp *matcherprop;
 
+       if (!clist->selection) return;
        row = GPOINTER_TO_INT(clist->selection->data);
        if (row == 0)
                return;