From 8159ffaa06cca36ca4be392e7654561430d53f12 Mon Sep 17 00:00:00 2001 From: Lourens Rozema Date: Fri, 20 Aug 2010 21:41:05 +0200 Subject: [PATCH] Bugfix for the kill command (used a.o. in test 18). Call to match_init is to be used i.o. a simple memset() to zero. Otherwise the boolean dock field doesn't get initalized to -1. --- src/cmdparse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmdparse.y b/src/cmdparse.y index 6718e8b2..5dba6f59 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -162,7 +162,7 @@ commands: /* empty */ TAILQ_REMOVE(&owindows, current, owindows); free(current); } - memset(¤t_match, 0, sizeof(Match)); + match_init(¤t_match); } ; @@ -185,7 +185,7 @@ matchstart: '[' { printf("start\n"); - memset(¤t_match, '\0', sizeof(Match)); + match_init(¤t_match); TAILQ_INIT(&owindows); /* copy all_cons */ Con *con; -- 2.39.5