]> git.sur5r.net Git - i3/i3/commitdiff
Same bugfix as 2a215fd, but for assignments with invalid criteria
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 11 Sep 2011 21:54:41 +0000 (22:54 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 11 Sep 2011 21:54:41 +0000 (22:54 +0100)
src/cfgparse.y

index 86e9ea98ea58371f85dc3e6a00bc5f1b62f7ab76..8faeff8503b8b587ba74524115d0bea6b2b811bc 100644 (file)
@@ -1148,6 +1148,10 @@ assign:
     }
     | 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);
         Assignment *assignment = scalloc(sizeof(Assignment));
         assignment->match = current_match;