Merge branch 'js/use-bug-macro'
[gitweb.git] / replace-object.c
index 246b98cd4f1e4d229109bbeb8ffe90731df43df0..801b5c16789f5ac7d87a4409d8218311a52db0aa 100644 (file)
@@ -37,7 +37,7 @@ static void prepare_replace_object(struct repository *r)
                return;
 
        r->objects->replace_map =
-               xmalloc(sizeof(*the_repository->objects->replace_map));
+               xmalloc(sizeof(*r->objects->replace_map));
        oidmap_init(r->objects->replace_map, 0);
 
        for_each_replace_ref(r, register_replace_ref, NULL);