summaryrefslogtreecommitdiff
path: root/builtin-check-attr.c
diff options
context:
space:
mode:
authorDaniel Lowe <dlowe@bitmuse.com>2008-11-10 16:07:52 -0500
committerJunio C Hamano <gitster@pobox.com>2008-11-11 14:50:02 -0800
commit42fc1139a07b4292d3e5251c591609126664941a (patch)
tree8c2b95bdea4386572845c9e63ab1a587a8c5e661 /builtin-check-attr.c
parent8bb4646dae89035695e72a39d6fe1c0f364ea0aa (diff)
downloadgit-42fc1139a07b4292d3e5251c591609126664941a.tar.gz
Fix non-literal format in printf-style calls
These were found using gcc 4.3.2-1ubuntu11 with the warning: warning: format not a string literal and no format arguments Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-check-attr.c')
-rw-r--r--builtin-check-attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-check-attr.c b/builtin-check-attr.c
index 4921341e33..15a04b7179 100644
--- a/builtin-check-attr.c
+++ b/builtin-check-attr.c
@@ -97,7 +97,7 @@ int cmd_check_attr(int argc, const char **argv, const char *prefix)
else if (stdin_paths && doubledash < argc)
errstr = "Can't specify files with --stdin";
if (errstr) {
- error (errstr);
+ error("%s", errstr);
usage_with_options(check_attr_usage, check_attr_options);
}