From: Steven Luo Date: Thu, 17 Dec 2009 11:12:12 +0000 (-0800) Subject: Make parse_config_file_end() clear re_init X-Git-Tag: v3.0rc1~10 X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=commitdiff_plain;h=f2de63c6e0c4bd6dd0bd02b8953b9a4d06a0bcb0 Make parse_config_file_end() clear re_init Without this, another call to parse_config_file_begin() does nothing, which causes a crash in parse_config_file_line(). --- diff --git a/configfile.c b/configfile.c index 193121a..5ed02d6 100644 --- a/configfile.c +++ b/configfile.c @@ -111,6 +111,7 @@ void parse_config_file_end(void) { 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,