ftp: fix incorrect out-of-memory code in Curl_pretransfer
authorJay Satiro <raysatiro@yahoo.com>
Mon, 16 May 2016 03:48:47 +0000 (23:48 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 16 May 2016 03:48:47 +0000 (23:48 -0400)
- Return value type must match function type.

s/CURLM_OUT_OF_MEMORY/CURLE_OUT_OF_MEMORY/

Caught by Travis CI

lib/transfer.c

index 72f4bd9ef596d75e7bd3ab119aee9a0d75970c53..4a12ee9a3f534ec277e47dadf4b01067ecbb463f 100644 (file)
@@ -1391,7 +1391,7 @@ CURLcode Curl_pretransfer(struct SessionHandle *data)
       if(!wc->filelist) {
         result = Curl_wildcard_init(wc); /* init wildcard structures */
         if(result)
-          return CURLM_OUT_OF_MEMORY;
+          return CURLE_OUT_OF_MEMORY;
       }
     }