From: Lourens Rozema Date: Fri, 20 Aug 2010 19:41:05 +0000 (+0200) Subject: Bugfix for the kill command (used a.o. in test 18). Call to match_init is to be used... X-Git-Tag: tree-pr1~138 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8159ffaa06cca36ca4be392e7654561430d53f12;p=i3%2Fi3 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. --- 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;