merge-recursive: don't segfault while handling rename clashes
[gitweb.git] / builtin-fsck.c
index 5c4c77adaaba36693e304c27d1f171f8e7e9f151..a60d199526a7c88572d3ccb4b5f4f040a282cd49 100644 (file)
@@ -158,7 +158,7 @@ static void check_reachable_object(struct object *obj)
         * do a full fsck
         */
        if (!obj->parsed) {
-               if (has_sha1_pack(obj->sha1, NULL))
+               if (has_sha1_pack(obj->sha1))
                        return; /* it is in pack - forget about it */
                printf("missing %s %s\n", typename(obj->type), sha1_to_hex(obj->sha1));
                errors_found |= ERROR_REACHABLE;