Fix warnings exposed by clang-3.8
Reviewed-by: Richard Levitte <levitte@openssl.org>
diff --git a/test/ct_test.c b/test/ct_test.c
index bdd5b84..8175d16 100644
--- a/test/ct_test.c
+++ b/test/ct_test.c
@@ -101,7 +101,11 @@
{
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 @@
goto end;
}
- memset(&fixture, 0, sizeof(fixture));
fixture.test_case_name = test_case_name;
fixture.ctlog_store = ctlog_store;