diff options
Diffstat (limited to 'apps/openssl.c')
-rw-r--r-- | apps/openssl.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/apps/openssl.c b/apps/openssl.c index b810ecf8b8..26ea449dce 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -216,7 +216,6 @@ int main(int argc, char *argv[]) FUNCTION f, *fp; LHASH_OF(FUNCTION) *prog = NULL; char **copied_argv = NULL; - char **argv_alias = NULL; char *p, *pname; char buf[1024]; const char *prompt; @@ -232,10 +231,8 @@ int main(int argc, char *argv[]) bio_out = dup_bio_out(FORMAT_TEXT); bio_err = dup_bio_err(FORMAT_TEXT); -#if defined( OPENSSL_SYS_VMS) && defined(__DECC) - copied_argv = argv_alias = copy_argv(&argc, argv); -#else - argv_alias = argv; +#if defined(OPENSSL_SYS_VMS) && defined(__DECC) + copied_argv = argv = copy_argv(&argc, argv); #endif p = getenv("OPENSSL_DEBUG_MEMORY"); @@ -259,22 +256,22 @@ int main(int argc, char *argv[]) goto end; prog = prog_init(); - pname = opt_progname(argv_alias[0]); + pname = opt_progname(argv[0]); /* first check the program name */ f.name = pname; fp = lh_FUNCTION_retrieve(prog, &f); if (fp != NULL) { - argv_alias[0] = pname; - ret = fp->func(argc, argv_alias); + argv[0] = pname; + ret = fp->func(argc, argv); goto end; } /* If there is stuff on the command line, run with that. */ if (argc != 1) { argc--; - argv_alias++; - ret = do_cmd(prog, argc, argv_alias); + argv++; + ret = do_cmd(prog, argc, argv); if (ret < 0) ret = 0; goto end; |