diff options
author | Yang Tse <yangsita@gmail.com> | 2008-05-31 01:37:21 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-05-31 01:37:21 +0000 |
commit | 4774582dfb23d45f078f1f5342aaab3a20db71b6 (patch) | |
tree | 153d6a997a62e80a2f064f6870c89776f98bdac4 /lib/ssh.c | |
parent | 1ed09ff7a49757a64083d29db4d344da080c581b (diff) | |
download | curl-4774582dfb23d45f078f1f5342aaab3a20db71b6.tar.gz |
Fix problem: 'result' may be used uninitialized.
Issue detected by Guenter Knauf's NetWare autobuild.
Diffstat (limited to 'lib/ssh.c')
-rw-r--r-- | lib/ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2175,7 +2175,7 @@ static CURLcode ssh_do(struct connectdata *conn, bool *done) disconnecting operations that takes a while */ static CURLcode scp_disconnect(struct connectdata *conn) { - CURLcode result; + CURLcode result = CURLE_OK; Curl_safefree(conn->data->state.proto.ssh); conn->data->state.proto.ssh = NULL; @@ -2331,7 +2331,7 @@ static CURLcode sftp_doing(struct connectdata *conn, disconnecting operations that takes a while */ static CURLcode sftp_disconnect(struct connectdata *conn) { - CURLcode result; + CURLcode result = CURLE_OK; DEBUGF(infof(conn->data, "SSH DISCONNECT starts now\n")); |