projects
/
browser-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0a8cbe9
)
Make parse_config_file_end() clear re_init
author
Steven Luo
<steven+maemo@steven676.net>
Thu, 17 Dec 2009 11:12:12 +0000
(
03:12
-0800)
committer
Steven 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
patch
|
blob
|
history
diff --git
a/configfile.c
b/configfile.c
index
193121a
..
5ed02d6
100644
(file)
--- 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);
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,