Make parse_config_file_end() clear re_init
authorSteven Luo <steven+maemo@steven676.net>
Thu, 17 Dec 2009 11:12:12 +0000 (03:12 -0800)
committerSteven Luo <steven+maemo@steven676.net>
Thu, 17 Dec 2009 11:12:12 +0000 (03:12 -0800)
Without this, another call to parse_config_file_begin() does nothing,
which causes a crash in parse_config_file_line().

configfile.c

index 193121a..5ed02d6 100644 (file)
@@ -111,6 +111,7 @@ void parse_config_file_end(void) {
        regfree(&re_ignore);
        regfree(&re_config1);
        regfree(&re_config2);
        regfree(&re_ignore);
        regfree(&re_config1);
        regfree(&re_config2);
+       re_init = 0;
 }
 
 /* Read the next line from a config file and store it into a swb_config_line,
 }
 
 /* Read the next line from a config file and store it into a swb_config_line,