From 57eb6a400a884cfb575fcaaf72f11456afa39a49 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 1 Oct 2018 20:55:19 +0200 Subject: [PATCH] tests: Init pubkey string with NULL in torture_keyfiles Signed-off-by: Andreas Schneider --- tests/unittests/torture_keyfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unittests/torture_keyfiles.c b/tests/unittests/torture_keyfiles.c index 59a4f5ee..114f42fa 100644 --- a/tests/unittests/torture_keyfiles.c +++ b/tests/unittests/torture_keyfiles.c @@ -104,7 +104,7 @@ static int teardown(void **state) static void torture_pubkey_from_file(void **state) { ssh_session session = *state; - ssh_string pubkey; + ssh_string pubkey = NULL; int type, rc; rc = ssh_try_publickey_from_file(session, LIBSSH_RSA_TESTKEY, &pubkey, &type);