]> git.99rst.org Git - git.git/commitdiff
osx-keychain: fix compiler warning
authorLessley Dennington <redacted>
Tue, 19 Jul 2022 17:25:03 +0000 (17:25 +0000)
committerJunio C Hamano <redacted>
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 <redacted>
Acked-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
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();
 
git clone https://git.99rst.org/PROJECT