tool: Fixed incorrect return code with --version from commit c10bf9bb36

This commit is contained in:
Steve Holme
2014-02-23 12:10:42 +00:00
parent 3674f2021d
commit 6512e93be1

View File

@@ -1839,7 +1839,7 @@ CURLcode operate(struct Configurable *config, int argc, argv_item_t argv[])
else if(res == PARAM_VERSION_INFO_REQUESTED) else if(res == PARAM_VERSION_INFO_REQUESTED)
tool_version_info(); tool_version_info();
/* Check if we were asked to list the SSL engines */ /* Check if we were asked to list the SSL engines */
if(res == PARAM_ENGINES_REQUESTED) else if(res == PARAM_ENGINES_REQUESTED)
tool_list_engines(config->easy); tool_list_engines(config->easy);
else else
result = CURLE_FAILED_INIT; result = CURLE_FAILED_INIT;