Convert lookup_blob to struct object_id
[gitweb.git] / builtin / fsck.c
index c40e14de658e399833a69225a04e93cd4ff27cc7..2f67e8217ec9588fe8ca5ab1fa6db41b907a8bed 100644 (file)
@@ -781,7 +781,7 @@ int cmd_fsck(int argc, const char **argv, const char *prefix)
                        mode = active_cache[i]->ce_mode;
                        if (S_ISGITLINK(mode))
                                continue;
-                       blob = lookup_blob(active_cache[i]->oid.hash);
+                       blob = lookup_blob(&active_cache[i]->oid);
                        if (!blob)
                                continue;
                        obj = &blob->object;