X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/31d0247cc58abc0b0720aa7e9972011c5a66995c..c81c35dfd10050ffef85d57dc2ad73f52f38a3f2:/test/tvec-core.c diff --git a/test/tvec-core.c b/test/tvec-core.c index f6d7918..65c74cf 100644 --- a/test/tvec-core.c +++ b/test/tvec-core.c @@ -744,7 +744,7 @@ void tvec_xfail(struct tvec_state *tv) static void check(struct tvec_state *tv, struct groupstate *g) { const struct tvec_test *t = tv->test; - const struct tvec_env *env; + const struct tvec_env *env = t->env; const struct tvec_regdef *rd; if (!(tv->f&TVSF_OPEN)) return; @@ -761,7 +761,6 @@ static void check(struct tvec_state *tv, struct groupstate *g) if (!(tv->f&TVSF_SKIP)) { begin_test(tv); - env = t->env; if (env && env->before) env->before(tv, g->ctx); if (!(tv->f&TVSF_ACTIVE)) /* setup forced a skip */;