summaryrefslogtreecommitdiffstats
path: root/apps/ts.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-04-21 10:01:19 +0100
committerMatt Caswell <matt@openssl.org>2016-04-21 10:51:57 +0100
commit5d94e5b65adc7d773068b8eb4b5525d35930f1ae (patch)
tree5766a38dd1d122ae565120490723cc5b040eb682 /apps/ts.c
parent3ad4af89cf7380aa94d1995e05e713d59e1c469a (diff)
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 <levitte@openssl.org>
Diffstat (limited to 'apps/ts.c')
-rw-r--r--apps/ts.c3
1 files changed, 1 insertions, 2 deletions
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. */