easy.c: Fixed compilation warning
authorSteve Holme <steve_holme@hotmail.com>
Sun, 1 Sep 2013 11:48:50 +0000 (12:48 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 1 Sep 2013 11:48:50 +0000 (12:48 +0100)
warning: `code' might be used uninitialized in this function

lib/easy.c

index 202d961..1e718ab 100644 (file)
@@ -718,7 +718,7 @@ static CURLcode easy_transfer(CURLM *multi)
 {
   bool done = FALSE;
   CURLMcode mcode = CURLM_OK;
-  CURLcode code;
+  CURLcode code = CURLE_OK;
   struct timeval before;
   int without_fds = 0;  /* count number of consecutive returns from
                            curl_multi_wait() without any filedescriptors */