Allow for empty criteria

This commit is contained in:
Ronan Pigott 2019-08-01 17:56:20 -07:00
parent fc955716d4
commit 37c86ded8a

View file

@ -668,11 +668,6 @@ struct criteria *criteria_parse(char *raw, char **error_arg) {
goto cleanup; goto cleanup;
} }
if (criteria_is_empty(criteria)) {
*error_arg = strdup("Criteria is empty");
goto cleanup;
}
++head; ++head;
int len = head - raw; int len = head - raw;
criteria->raw = calloc(len + 1, 1); criteria->raw = calloc(len + 1, 1);