mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00
Don't increment rule counter when failing
This commit is contained in:
parent
7f4c33eec9
commit
e5c2c2524b
1 changed files with 2 additions and 0 deletions
|
@ -470,11 +470,13 @@ bool cmd_rule(char **args, int num, char *rsp) {
|
|||
num--, args++;
|
||||
if (num < 1) {
|
||||
free(rule);
|
||||
rule_uid--;
|
||||
return false;
|
||||
}
|
||||
strncpy(rule->effect.desc, *args, sizeof(rule->effect.desc));
|
||||
} else {
|
||||
free(rule);
|
||||
rule_uid--;
|
||||
return false;
|
||||
}
|
||||
num--, args++;
|
||||
|
|
Loading…
Add table
Reference in a new issue