projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
328600e
)
compiler warning: fix
author
Yang Tse
<yangsita@gmail.com>
Mon, 23 May 2011 17:37:41 +0000
(19:37 +0200)
committer
Yang Tse
<yangsita@gmail.com>
Mon, 23 May 2011 17:37:41 +0000
(19:37 +0200)
Fix compiler warning: `keycheck' might be used uninitialized in this function.
Fix compiler warning: `keybit' might be used uninitialized in this function.
lib/ssh.c
patch
|
blob
|
history
diff --git
a/lib/ssh.c
b/lib/ssh.c
index
a26b51b
..
bc05de6
100644
(file)
--- 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) {
/*