]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Remove unnecessary argc assign
authorJohnnySavages <drokov@rutoken.ru>
Fri, 19 Dec 2025 04:50:54 +0000 (23:50 -0500)
committerTomas Mraz <tomas@openssl.org>
Thu, 8 Jan 2026 10:03:40 +0000 (11:03 +0100)
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)

apps/passwd.c
apps/rehash.c

index 338e0135bae8a3655d8dd8158021210a13b73ed2..ebe1093207f837a775f8a657faa827f498207907 100644 (file)
@@ -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)
index 45089a0109d03cd2d59c73366990a7adba73dd70..ab4737495bfb4d16d7b410a87d05c17d876a9cac 100644 (file)
@@ -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();