mirror of https://github.com/0intro/wmii
Fix crash on systems with pedantic mallocs (needed another * in malloc. Thank you valgrind).
This commit is contained in:
parent
6adf15ff8e
commit
9d5f2c8014
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue