apps/openssl: clean-up of unused fallback code
authorRichard Levitte <levitte@openssl.org>
Wed, 24 Jun 2020 11:16:30 +0000 (13:16 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 28 Jun 2020 16:49:50 +0000 (18:49 +0200)
Remove code in help_main() that duplicates the case when 'openssl' is
called with no arguments, which is now handled in main().

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/12295)

apps/openssl.c

index 3593c2b9f24290cfb948bdc23f1f1d8aa413a839..a1b4443e4b26a669eca3dc87b1164ca31e4f0b05 100644 (file)
@@ -312,12 +312,6 @@ int help_main(int argc, char **argv)
     DISPLAY_COLUMNS dc;
     char *new_argv[3];
 
-    if (argc == 0) {
-        new_argv[0] = "help";
-        new_argv[1] = NULL;
-        return do_cmd(prog_init(), 1, new_argv);
-    }
-
     prog = opt_init(argc, argv, help_options);
     while ((o = opt_next()) != OPT_hEOF) {
         switch (o) {