From 5d94e5b65adc7d773068b8eb4b5525d35930f1ae Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 21 Apr 2016 10:01:19 +0100 Subject: [PATCH] Remove some unneccessary assignments to argc openssl.c and ts.c assign the value of opt_num_rest() to argc, but then only use the value once. Reviewed-by: Richard Levitte --- apps/openssl.c | 3 +-- apps/ts.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/openssl.c b/apps/openssl.c index e594bd1d23..f2fb295fab 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -491,9 +491,8 @@ int help_main(int argc, char **argv) return 0; } } - argc = opt_num_rest(); - if (argc != 0) { + if (opt_num_rest() != 0) { BIO_printf(bio_err, "Usage: %s\n", prog); return 1; } diff --git a/apps/ts.c b/apps/ts.c index ff4b25eef6..cec217708e 100644 --- a/apps/ts.c +++ b/apps/ts.c @@ -319,8 +319,7 @@ int ts_main(int argc, char **argv) break; } } - argc = opt_num_rest(); - if (mode == OPT_ERR || argc != 0) + if (mode == OPT_ERR || opt_num_rest() != 0) goto opthelp; /* Seed the random number generator if it is going to be used. */ -- 2.34.1