]> git.sur5r.net Git - i3/i3/commitdiff
parser: bugfix: initialize match when parsing new command
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 12 Nov 2010 18:07:35 +0000 (19:07 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 12 Nov 2010 18:07:48 +0000 (19:07 +0100)
src/cmdparse.y

index a4ed00bb1a59d22e0dcfd821c76ad40a4a46cab1..bcf144cdf2faf3ed56fddbb1e0d2d63e9935780d 100644 (file)
@@ -71,6 +71,7 @@ char *parse_cmd(const char *new) {
 
     cmdyy_scan_string(new);
 
+    match_init(&current_match);
     context = scalloc(sizeof(struct context));
     context->filename = "cmd";
     FREE(json_output);