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;