From: Yang Tse Date: Mon, 23 May 2011 17:37:41 +0000 (+0200) Subject: compiler warning: fix X-Git-Tag: curl-7_21_7~88 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8bdc48eddb00bcb4d74bb182231460ce019782d9;p=thirdparty%2Fcurl.git compiler warning: fix Fix compiler warning: `keycheck' might be used uninitialized in this function. Fix compiler warning: `keybit' might be used uninitialized in this function. --- diff --git a/lib/ssh.c b/lib/ssh.c index a26b51be46..bc05de69d6 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -522,8 +522,8 @@ static CURLcode ssh_knownhost(struct connectdata *conn) size_t keylen; const char *remotekey = libssh2_session_hostkey(sshc->ssh_session, &keylen, &keytype); - int keycheck; - int keybit; + int keycheck = LIBSSH2_KNOWNHOST_CHECK_FAILURE; + int keybit = 0; if(remotekey) { /*