]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool: Fixed incorrect return code with --version from commit c10bf9bb36
authorSteve Holme <steve_holme@hotmail.com>
Sun, 23 Feb 2014 12:10:42 +0000 (12:10 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 23 Feb 2014 12:13:39 +0000 (12:13 +0000)
src/tool_operate.c

index eaff865007c7581fc3e525452c4c7dbda2347a9a..d117a2aad4d1f3acd3f0440e204d94bbc82fa1f6 100644 (file)
@@ -1839,7 +1839,7 @@ CURLcode operate(struct Configurable *config, int argc, argv_item_t argv[])
       else if(res == PARAM_VERSION_INFO_REQUESTED)
         tool_version_info();
       /* 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);
       else
         result = CURLE_FAILED_INIT;