refs: pass NULL to resolve_ref_unsafe() if hash is not needed
[gitweb.git] / http-backend.c
index 8076b1d5e5ae01341fa739f55c6bcf6695e6507a..b8ce960a35986f03303df047a2be286966dc5390 100644 (file)
@@ -486,10 +486,9 @@ static int show_head_ref(const char *refname, const struct object_id *oid,
        struct strbuf *buf = cb_data;
 
        if (flag & REF_ISSYMREF) {
-               struct object_id unused;
                const char *target = resolve_ref_unsafe(refname,
                                                        RESOLVE_REF_READING,
-                                                       unused.hash, NULL);
+                                                       NULL, NULL);
 
                if (target)
                        strbuf_addf(buf, "ref: %s\n", strip_namespace(target));