1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Fix problem: 'result' may be used uninitialized.

Issue detected by Guenter Knauf's NetWare autobuild.
This commit is contained in:
Yang Tse 2008-05-31 01:37:21 +00:00
parent 1ed09ff7a4
commit 4774582dfb

View File

@ -2175,7 +2175,7 @@ static CURLcode ssh_do(struct connectdata *conn, bool *done)
disconnecting operations that takes a while */ disconnecting operations that takes a while */
static CURLcode scp_disconnect(struct connectdata *conn) static CURLcode scp_disconnect(struct connectdata *conn)
{ {
CURLcode result; CURLcode result = CURLE_OK;
Curl_safefree(conn->data->state.proto.ssh); Curl_safefree(conn->data->state.proto.ssh);
conn->data->state.proto.ssh = NULL; conn->data->state.proto.ssh = NULL;
@ -2331,7 +2331,7 @@ static CURLcode sftp_doing(struct connectdata *conn,
disconnecting operations that takes a while */ disconnecting operations that takes a while */
static CURLcode sftp_disconnect(struct connectdata *conn) static CURLcode sftp_disconnect(struct connectdata *conn)
{ {
CURLcode result; CURLcode result = CURLE_OK;
DEBUGF(infof(conn->data, "SSH DISCONNECT starts now\n")); DEBUGF(infof(conn->data, "SSH DISCONNECT starts now\n"));