From: Michael Stapelberg Date: Sun, 11 Sep 2011 21:54:41 +0000 (+0100) Subject: Same bugfix as 2a215fd, but for assignments with invalid criteria X-Git-Tag: 4.1~163 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c7148c46e4371742a4e1725f698a918967b825f;p=i3%2Fi3 Same bugfix as 2a215fd, but for assignments with invalid criteria --- diff --git a/src/cfgparse.y b/src/cfgparse.y index 86e9ea98..8faeff85 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -1148,6 +1148,10 @@ assign: } | TOKASSIGN match STR { + if (match_is_empty(¤t_match)) { + ELOG("Match is empty, ignoring this assignment\n"); + break; + } printf("new assignment, using above criteria, to workspace %s\n", $3); Assignment *assignment = scalloc(sizeof(Assignment)); assignment->match = current_match;