diff options
Diffstat (limited to 'test/ct_test.c')
-rw-r--r-- | test/ct_test.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/ct_test.c b/test/ct_test.c index bdd5b84806..8175d16c92 100644 --- a/test/ct_test.c +++ b/test/ct_test.c @@ -101,7 +101,11 @@ static CT_TEST_FIXTURE set_up(const char *const test_case_name) { CT_TEST_FIXTURE fixture; int setup_ok = 1; - CTLOG_STORE *ctlog_store = CTLOG_STORE_new(); + CTLOG_STORE *ctlog_store; + + memset(&fixture, 0, sizeof(fixture)); + + ctlog_store = CTLOG_STORE_new(); if (ctlog_store == NULL) { setup_ok = 0; @@ -115,7 +119,6 @@ static CT_TEST_FIXTURE set_up(const char *const test_case_name) goto end; } - memset(&fixture, 0, sizeof(fixture)); fixture.test_case_name = test_case_name; fixture.ctlog_store = ctlog_store; |