From 65b22480f4053ccedc6fd933f52b1e7dd6e1bce9 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Tue, 13 Nov 2001 12:09:05 +0000
Subject: [PATCH] uninitialized variable

---
 lib/ftp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ftp.c b/lib/ftp.c
index fe48c6f9cf..fc78d66ad3 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -558,7 +558,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn)
   ssize_t nread;
   char *buf = data->state.buffer; /* this is our buffer */
   int ftpcode;
-  CURLcode result;
+  CURLcode result=CURLE_OK;
 
   if(data->set.upload) {
     if((-1 != data->set.infilesize) && (data->set.infilesize != *ftp->bytecountp)) {
-- 
GitLab