mirror of
https://github.com/swaywm/sway.git
synced 2026-04-27 06:46:25 -04:00
Allow for empty criteria
This commit is contained in:
parent
fc955716d4
commit
37c86ded8a
1 changed files with 0 additions and 5 deletions
|
|
@ -668,11 +668,6 @@ struct criteria *criteria_parse(char *raw, char **error_arg) {
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
if (criteria_is_empty(criteria)) {
|
||||
*error_arg = strdup("Criteria is empty");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
++head;
|
||||
int len = head - raw;
|
||||
criteria->raw = calloc(len + 1, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue