mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
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.
This commit is contained in:
parent
328600e02b
commit
8bdc48eddb
@ -522,8 +522,8 @@ static CURLcode ssh_knownhost(struct connectdata *conn)
|
|||||||
size_t keylen;
|
size_t keylen;
|
||||||
const char *remotekey = libssh2_session_hostkey(sshc->ssh_session,
|
const char *remotekey = libssh2_session_hostkey(sshc->ssh_session,
|
||||||
&keylen, &keytype);
|
&keylen, &keytype);
|
||||||
int keycheck;
|
int keycheck = LIBSSH2_KNOWNHOST_CHECK_FAILURE;
|
||||||
int keybit;
|
int keybit = 0;
|
||||||
|
|
||||||
if(remotekey) {
|
if(remotekey) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user