summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorLibravatar Daniel Lowe <dlowe@bitmuse.com>2008-11-10 16:07:52 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-11-11 14:43:59 -0800
commit9db56f71b91153f4076a796c80c61f00edd8b700 (patch)
treedc26e0cca76524884d612fdac3139accea58dbdb /refs.c
parentgit-submodule: Avoid printing a spurious message. (diff)
downloadtgif-9db56f71b91153f4076a796c80c61f00edd8b700.tar.xz
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 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 293389e764..be095cb07d 100644
--- a/refs.c
+++ b/refs.c
@@ -934,7 +934,7 @@ int delete_ref(const char *refname, const unsigned char *sha1, int delopt)
lock->lk->filename[i] = 0;
path = lock->lk->filename;
} else {
- path = git_path(refname);
+ path = git_path("%s", refname);
}
err = unlink(path);
if (err && errno != ENOENT) {