aboutsummaryrefslogtreecommitdiff
path: root/test/ct_test.c
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2016-04-08 16:19:00 +0200
committerEmilia Kasper <emilia@openssl.org>2016-04-10 01:50:32 +0200
commit50eadf2a242468a9552fc770cb7e5ebfd89c6bb1 (patch)
tree4a814a20f6170742eb17102adf9a65d0c1eeeabf /test/ct_test.c
parentb59147070021ef2838e47c5c29331f6816b73f65 (diff)
downloadopenssl-50eadf2a242468a9552fc770cb7e5ebfd89c6bb1.zip
openssl-50eadf2a242468a9552fc770cb7e5ebfd89c6bb1.tar.gz
openssl-50eadf2a242468a9552fc770cb7e5ebfd89c6bb1.tar.bz2
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.c7
1 files changed, 5 insertions, 2 deletions
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 @@ 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;