aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2013-05-25 11:08:18 +0200
committerJunio C Hamano <gitster@pobox.com>2013-06-02 15:28:47 -0700
commit1d811dbd04afc9fd4e59d1a1a2c090abb835d55f (patch)
treebf9a2bfc919fb5d0b071d58270b6237c703d34b5
parentf83918edcb6fbcd1c5d8378c11e57edcc47bd232 (diff)
downloadgit-1d811dbd04afc9fd4e59d1a1a2c090abb835d55f.tar.gz
git-1d811dbd04afc9fd4e59d1a1a2c090abb835d55f.tar.xz
show_head_ref(): do not shadow name of argument
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--http-backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/http-backend.c b/http-backend.c
index 6b85ffac2..313583562 100644
--- a/http-backend.c
+++ b/http-backend.c
@@ -416,8 +416,8 @@ static int show_head_ref(const char *name, const unsigned char *sha1,
struct strbuf *buf = cb_data;
if (flag & REF_ISSYMREF) {
- unsigned char sha1[20];
- const char *target = resolve_ref_unsafe(name, sha1, 1, NULL);
+ unsigned char unused[20];
+ const char *target = resolve_ref_unsafe(name, unused, 1, NULL);
const char *target_nons = strip_namespace(target);
strbuf_addf(buf, "ref: %s\n", target_nons);