Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lowe <dlowe@bitmuse.com>2008-11-11 00:07:52 +0300
committerJunio C Hamano <gitster@pobox.com>2008-11-12 01:50:02 +0300
commit42fc1139a07b4292d3e5251c591609126664941a (patch)
tree8c2b95bdea4386572845c9e63ab1a587a8c5e661 /hash-object.c
parent8bb4646dae89035695e72a39d6fe1c0f364ea0aa (diff)
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 'hash-object.c')
-rw-r--r--hash-object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash-object.c b/hash-object.c
index 20937ff94c..846e91a231 100644
--- a/hash-object.c
+++ b/hash-object.c
@@ -110,7 +110,7 @@ int main(int argc, const char **argv)
}
if (errstr) {
- error (errstr);
+ error("%s", errstr);
usage_with_options(hash_object_usage, hash_object_options);
}