Fix crash on systems with pedantic mallocs (needed another * in malloc. Thank you valgrind).

This commit is contained in:
Kris Maglione 2008-01-21 02:35:11 -05:00
parent 6adf15ff8e
commit 9d5f2c8014
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ update_rules(Rule **rule, const char *data) {
if(c == '\n' || c == '#' || c == 0) {
*v = 0;
trim(value, " \t/");
*rule = emallocz(sizeof *rule);
*rule = emallocz(sizeof **rule);
(*rule)->regex = regcomp(regex);
if((*rule)->regex) {
utflcpy((*rule)->value, value, sizeof(rul->value));