diff options
author | Emilia Kasper <emilia@openssl.org> | 2016-04-08 16:19:00 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2016-04-10 01:50:32 +0200 |
commit | 50eadf2a242468a9552fc770cb7e5ebfd89c6bb1 (patch) | |
tree | 4a814a20f6170742eb17102adf9a65d0c1eeeabf /test/ct_test.c | |
parent | Adjust --strict-warnings builds in Travis (diff) | |
download | openssl-50eadf2a242468a9552fc770cb7e5ebfd89c6bb1.tar.xz openssl-50eadf2a242468a9552fc770cb7e5ebfd89c6bb1.zip |
Fix warnings exposed by clang-3.8
Reviewed-by: Richard Levitte <levitte@openssl.org>
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; |