diff options
author | Daniel Lowe <dlowe@bitmuse.com> | 2008-11-10 16:07:52 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-11 14:43:59 -0800 |
commit | 9db56f71b91153f4076a796c80c61f00edd8b700 (patch) | |
tree | dc26e0cca76524884d612fdac3139accea58dbdb /unpack-trees.c | |
parent | 989206f535dcd0f43356ad38e1d54cb833d96fc2 (diff) | |
download | git-9db56f71b91153f4076a796c80c61f00edd8b700.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
Incorporated suggestions from Brandon Casey <casey@nrlssc.navy.mil>.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r-- | unpack-trees.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack-trees.c b/unpack-trees.c index e5749ef638..54f301da67 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -352,7 +352,7 @@ static int unpack_failed(struct unpack_trees_options *o, const char *message) discard_index(&o->result); if (!o->gently) { if (message) - return error(message); + return error("%s", message); return -1; } return -1; |