]> git.ipfire.org Git - thirdparty/git.git/blobdiff - add-interactive.c
Provide zlib's uncompress2 from compat/zlib-compat.c
[thirdparty/git.git] / add-interactive.c
index 09faee0e8f8b2694a87e36f6b5e91e6b14300bf7..36ebdbdf7e2c8d6a5598e3e773b44d53b290ada7 100644 (file)
@@ -476,7 +476,7 @@ static void collect_changes_cb(struct diff_queue_struct *q,
 
                        add_file_item(s->files, name);
 
-                       entry = xcalloc(1, sizeof(*entry));
+                       CALLOC_ARRAY(entry, 1);
                        hashmap_entry_init(&entry->ent, hash);
                        entry->name = s->files->items[s->files->nr - 1].string;
                        entry->item = s->files->items[s->files->nr - 1].util;