Skip to content

Commit

Permalink
apps/openssl: clean-up of unused fallback code
Browse files Browse the repository at this point in the history
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 <[email protected]>
(Merged from openssl#12295)
  • Loading branch information
levitte committed Jun 28, 2020
1 parent c974172 commit 96e0445
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 96e0445

Please sign in to comment.