diff options
author | Richard Levitte <levitte@openssl.org> | 2019-03-03 10:20:37 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-03-05 08:51:09 +0100 |
commit | 9b542d72d2e7d4893a11b2e87628d9ac8637b954 (patch) | |
tree | 6d57a2ff528849c7208edb9797bc35f2db35f9de /apps/openssl.c | |
parent | Deprecate the "hw" configuration options, make "padlockeng" disablable (diff) | |
download | openssl-9b542d72d2e7d4893a11b2e87628d9ac8637b954.tar.xz openssl-9b542d72d2e7d4893a11b2e87628d9ac8637b954.zip |
VMS: move copy_argc to its own module and make it an aux source
copy_argv was never initialization code.
Make it self-cleaning too.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8381)
Diffstat (limited to 'apps/openssl.c')
-rw-r--r-- | apps/openssl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/openssl.c b/apps/openssl.c index 3747b1aa7a..6b63b362ab 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -121,7 +121,6 @@ int main(int argc, char *argv[]) { FUNCTION f, *fp; LHASH_OF(FUNCTION) *prog = NULL; - char **copied_argv = NULL; char *p, *pname; char buf[1024]; const char *prompt; @@ -138,7 +137,7 @@ int main(int argc, char *argv[]) bio_err = dup_bio_err(FORMAT_TEXT); #if defined(OPENSSL_SYS_VMS) && defined(__DECC) - copied_argv = argv = copy_argv(&argc, argv); + argv = copy_argv(&argc, argv); #elif defined(_WIN32) /* * Replace argv[] with UTF-8 encoded strings. @@ -252,7 +251,6 @@ int main(int argc, char *argv[]) } ret = 1; end: - OPENSSL_free(copied_argv); OPENSSL_free(default_config_file); lh_FUNCTION_free(prog); OPENSSL_free(arg.argv); |