提交 5d94e5b6 编写于 作者: M Matt Caswell

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: NRichard Levitte <levitte@openssl.org>
上级 3ad4af89
...@@ -491,9 +491,8 @@ int help_main(int argc, char **argv) ...@@ -491,9 +491,8 @@ int help_main(int argc, char **argv)
return 0; return 0;
} }
} }
argc = opt_num_rest();
if (argc != 0) { if (opt_num_rest() != 0) {
BIO_printf(bio_err, "Usage: %s\n", prog); BIO_printf(bio_err, "Usage: %s\n", prog);
return 1; return 1;
} }
......
...@@ -319,8 +319,7 @@ int ts_main(int argc, char **argv) ...@@ -319,8 +319,7 @@ int ts_main(int argc, char **argv)
break; break;
} }
} }
argc = opt_num_rest(); if (mode == OPT_ERR || opt_num_rest() != 0)
if (mode == OPT_ERR || argc != 0)
goto opthelp; goto opthelp;
/* Seed the random number generator if it is going to be used. */ /* Seed the random number generator if it is going to be used. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册