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
1 changed files with 2 additions and 2 deletions

View 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;