diff --git a/sway/criteria.c b/sway/criteria.c index 286ccc3b..248260ec 100644 --- a/sway/criteria.c +++ b/sway/criteria.c @@ -420,6 +420,7 @@ static void unescape(char *value) { * populated with an error string. It is up to the caller to free the error. */ struct criteria *criteria_parse(char *raw, char **error_arg) { + *error_arg = NULL; error = NULL; char *head = raw;