]> git.ipfire.org Git - thirdparty/git.git/commitdiff
osx-keychain: fix compiler warning
authorLessley Dennington <lessleydennington@gmail.com>
Tue, 19 Jul 2022 17:25:03 +0000 (17:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jul 2022 18:25:15 +0000 (11:25 -0700)
Update git-credential-osxkeychain.c to remove 'format string is not a string
literal (potentially insecure)' compiler warning by treating the string as
an argument.

Signed-off-by: Lessley Dennington <lessleydennington@gmail.com>
Acked-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/osxkeychain/git-credential-osxkeychain.c

index 0b44a9b7cc6f2b859f4b5c42edc52f528bdde84e..bf77748d602fec651661075cbd6dd32951d065d2 100644 (file)
@@ -168,7 +168,7 @@ int main(int argc, const char **argv)
                "usage: git credential-osxkeychain <get|store|erase>";
 
        if (!argv[1])
-               die(usage);
+               die("%s", usage);
 
        read_credential();