From: Michael Haggerty Date: Mon, 25 May 2015 18:39:11 +0000 (+0000) Subject: find_symref(): convert local variable "unused" to object_id X-Git-Tag: v2.5.0-rc0~54^2~11 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e45a4949a28ef26fb3f27dc8ad2ad676269a5ea5 find_symref(): convert local variable "unused" to object_id Signed-off-by: Michael Haggerty Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- diff --git a/upload-pack.c b/upload-pack.c index 96dbedc710..82680378b2 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -746,11 +746,11 @@ static int find_symref(const char *refname, const struct object_id *oid, { const char *symref_target; struct string_list_item *item; - unsigned char unused[20]; + struct object_id unused; if ((flag & REF_ISSYMREF) == 0) return 0; - symref_target = resolve_ref_unsafe(refname, 0, unused, &flag); + symref_target = resolve_ref_unsafe(refname, 0, unused.hash, &flag); if (!symref_target || (flag & REF_ISSYMREF) == 0) die("'%s' is a symref but it is not?", refname); item = string_list_append(cb_data, refname);