]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix for the kill command (used a.o. in test 18). Call to match_init is to be used...
authorLourens Rozema <i3hacker@LourensRozema.nl>
Fri, 20 Aug 2010 19:41:05 +0000 (21:41 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 21 Aug 2010 16:28:37 +0000 (18:28 +0200)
src/cmdparse.y

index 6718e8b2c4b5a3d74d2da96173a99e6f5a4a5514..5dba6f59e1b732b3a5a332a56ade328c07b30808 100644 (file)
@@ -162,7 +162,7 @@ commands: /* empty */
             TAILQ_REMOVE(&owindows, current, owindows);
             free(current);
         }
-        memset(&current_match, 0, sizeof(Match));
+        match_init(&current_match);
     }
     ;
 
@@ -185,7 +185,7 @@ matchstart:
     '['
     {
         printf("start\n");
-        memset(&current_match, '\0', sizeof(Match));
+        match_init(&current_match);
         TAILQ_INIT(&owindows);
         /* copy all_cons */
         Con *con;