]> git.ipfire.org Git - thirdparty/git.git/commit
contrib/credential: fix compilation of "osxkeychain" helper
authorPatrick Steinhardt <ps@pks.im>
Tue, 18 Feb 2025 07:45:53 +0000 (08:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Feb 2025 19:40:03 +0000 (11:40 -0800)
commit3f22889276ee75195f56bb3779ee8af5acbedbf0
treed563cf74d7b8b3733c0da57ae7ede03d673c551c
parenta47b8733b3f7db0c0db8cbfbdfc0aa2c197af6ee
contrib/credential: fix compilation of "osxkeychain" helper

The "osxkeychain" helper does not compile due to a warning generated by
the unused `argc` parameter. Fix the warning by checking for the minimum
number of required arguments explicitly in the least restrictive way
possible.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/osxkeychain/git-credential-osxkeychain.c