]> granicus.if.org Git - curl/commitdiff
Fix 'result' may be used uninitialized in function readwrite_data()
authorYang Tse <yangsita@gmail.com>
Tue, 12 Aug 2008 19:09:20 +0000 (19:09 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 12 Aug 2008 19:09:20 +0000 (19:09 +0000)
lib/transfer.c

index 3457f7c26e9f3761e1ed5d22761fb4b6ab3f0de0..dae8599b9d2af033ccbdba70abebaee0cf1c37f1 100644 (file)
@@ -353,7 +353,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
                                struct SingleRequest *k,
                                int *didwhat, bool *done)
 {
-  CURLcode result;
+  CURLcode result = CURLE_OK;
   ssize_t nread; /* number of bytes read */
   bool is_empty_data = FALSE;