Commit 8bdc48ed authored by Yang Tse's avatar Yang Tse
Browse files

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.
parent 328600e0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {
      /*