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.

This commit is contained in:
Lourens Rozema 2010-08-20 21:41:05 +02:00 committed by Michael Stapelberg
parent ebe878d24c
commit 8159ffaa06

View File

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