1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

ftp: fix incorrect out-of-memory code in Curl_pretransfer

- Return value type must match function type.

s/CURLM_OUT_OF_MEMORY/CURLE_OUT_OF_MEMORY/

Caught by Travis CI
This commit is contained in:
Jay Satiro 2016-05-15 23:48:47 -04:00
parent cba9621342
commit b49edf5f02

View 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;
}
}