Same bugfix as 2a215fd, but for assignments with invalid criteria

This commit is contained in:
Michael Stapelberg 2011-09-11 22:54:41 +01:00
parent 717ae819c5
commit 2c7148c46e
1 changed files with 4 additions and 0 deletions

View File

@ -1148,6 +1148,10 @@ assign:
} }
| TOKASSIGN match STR | TOKASSIGN match STR
{ {
if (match_is_empty(&current_match)) {
ELOG("Match is empty, ignoring this assignment\n");
break;
}
printf("new assignment, using above criteria, to workspace %s\n", $3); printf("new assignment, using above criteria, to workspace %s\n", $3);
Assignment *assignment = scalloc(sizeof(Assignment)); Assignment *assignment = scalloc(sizeof(Assignment));
assignment->match = current_match; assignment->match = current_match;