diff options
author | Lessley Dennington <lessleydennington@gmail.com> | 2022-07-19 19:25:03 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-07-19 20:25:15 +0200 |
commit | f2fc531585215d02a75a4d1ce7e6964e9eb21812 (patch) | |
tree | 2372f34c601d6dea88e62bf5262db6f2bb417ac9 | |
parent | Git 2.37.1 (diff) | |
download | git-f2fc531585215d02a75a4d1ce7e6964e9eb21812.tar.xz git-f2fc531585215d02a75a4d1ce7e6964e9eb21812.zip |
osx-keychain: fix compiler warning
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>
-rw-r--r-- | contrib/credential/osxkeychain/git-credential-osxkeychain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/credential/osxkeychain/git-credential-osxkeychain.c b/contrib/credential/osxkeychain/git-credential-osxkeychain.c index 0b44a9b7cc..bf77748d60 100644 --- a/contrib/credential/osxkeychain/git-credential-osxkeychain.c +++ b/contrib/credential/osxkeychain/git-credential-osxkeychain.c @@ -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(); |