fix crash introduced in c7e1e0bbdf72269708a53075a4accecb61ebebe2
authorPaul <paul@claws-mail.org>
Tue, 24 May 2016 13:20:52 +0000 (14:20 +0100)
committerPaul <paul@claws-mail.org>
Tue, 24 May 2016 13:20:52 +0000 (14:20 +0100)
src/matcher.c

index d0d7e15ca3ec246812b522a00d8d53036997fc6f..83047c06e8aec138673d1c26e978b890474b9f64 100644 (file)
@@ -2575,6 +2575,8 @@ void prefs_matcher_read_config(void)
        f = g_fopen(rcpath, "rb");
        g_free(rcpath);
 
        f = g_fopen(rcpath, "rb");
        g_free(rcpath);
 
-       matcher_parser_start_parsing(f);
-       fclose(matcher_parserin);
+       if (f != NULL) {
+               matcher_parser_start_parsing(f);
+               fclose(matcher_parserin);
+       }
 }
 }