From 49ea2be885407796bfc93f03ceb64c3066680d6f Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Sun, 22 Mar 2015 15:56:48 +0100 Subject: [PATCH] userauth.c: fixed warning C6001: using uninitialized sig and sig_len --- src/userauth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/userauth.c b/src/userauth.c index 7a4b27b..96c7e02 100644 --- a/src/userauth.c +++ b/src/userauth.c @@ -790,9 +790,9 @@ userauth_hostbased_fromfile(LIBSSH2_SESSION *session, if (session->userauth_host_state == libssh2_NB_state_idle) { const LIBSSH2_HOSTKEY_METHOD *privkeyobj; - unsigned char *pubkeydata, *sig; + unsigned char *pubkeydata, *sig = NULL; size_t pubkeydata_len = 0; - size_t sig_len; + size_t sig_len = 0; void *abstract; unsigned char buf[5]; struct iovec datavec[4];