Commit 5d94e5b6 authored by Matt Caswell's avatar Matt Caswell
Browse files

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: default avatarRichard Levitte <levitte@openssl.org>
parent 3ad4af89
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
    }
+1 −2
Original line number Diff line number Diff line
@@ -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. */