Commit c8bae42190 for openssl.org
commit c8bae42190a0c0cdb0d86f9c0f604c9d79da40d0
Author: JohnnySavages <drokov@rutoken.ru>
Date: Thu Dec 18 23:50:54 2025 -0500
Remove unnecessary argc assign
Found by Linux Verification Center (linuxtesting.org) with SVACE.
CLA:trivial
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
MergeDate: Thu Jan 8 10:03:55 2026
(Merged from https://github.com/openssl/openssl/pull/29457)
diff --git a/apps/passwd.c b/apps/passwd.c
index 338e0135ba..ebe1093207 100644
--- a/apps/passwd.c
+++ b/apps/passwd.c
@@ -196,7 +196,6 @@ int passwd_main(int argc, char **argv)
}
/* All remaining arguments are the password text */
- argc = opt_num_rest();
argv = opt_rest();
if (*argv != NULL) {
if (pw_source_defined)
diff --git a/apps/rehash.c b/apps/rehash.c
index 45089a0109..ab4737495b 100644
--- a/apps/rehash.c
+++ b/apps/rehash.c
@@ -550,7 +550,6 @@ int rehash_main(int argc, char **argv)
}
/* Optional arguments are directories to scan. */
- argc = opt_num_rest();
argv = opt_rest();
evpmd = EVP_sha1();