aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-05-31 01:37:21 +0000
committerYang Tse <yangsita@gmail.com>2008-05-31 01:37:21 +0000
commit4774582dfb23d45f078f1f5342aaab3a20db71b6 (patch)
tree153d6a997a62e80a2f064f6870c89776f98bdac4
parent1ed09ff7a49757a64083d29db4d344da080c581b (diff)
Fix problem: 'result' may be used uninitialized.
Issue detected by Guenter Knauf's NetWare autobuild.
-rw-r--r--lib/ssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 2e1633a00..f54353c03 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -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"));