]> granicus.if.org Git - curl/commit
tool: Fixed incorrect return code if command line parser runs out of memory
authorSteve Holme <steve_holme@hotmail.com>
Sun, 19 Jan 2014 12:20:01 +0000 (12:20 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 19 Jan 2014 12:31:34 +0000 (12:31 +0000)
commitaba98991a50d7a4f2deb8fc3f9ddc5628a207da5
tree170c920f1a17fea231bc8cb4f3f1775cb54b5c31
parentdb1beab1d7bd37948155ab741caae079053f92a8
tool: Fixed incorrect return code if command line parser runs out of memory

In the rare instance where getparameter() may return PARAM_NO_MEM whilst
parsing a URL, cURL would return this error code, which is equivalent to
CURLE_FTP_ACCEPT_FAILED in cURL error codes terms.

Instead, return CURLE_FAILED_INIT and output the failure reason as per
the other usage of getparameter().
src/tool_operate.c