]> git.ipfire.org Git - thirdparty/git.git/blobdiff - read-cache.c
[PATCH] introduce xmalloc and xrealloc
[thirdparty/git.git] / read-cache.c
index f67aceb6b12f6d9cadf6a80bb1d33cf1bcd7f619..2354e8039b80af1645863b881068f0cf26134fe0 100644 (file)
@@ -143,7 +143,7 @@ int add_cache_entry(struct cache_entry *ce, int ok_to_add)
        /* Make sure the array is big enough .. */
        if (active_nr == active_alloc) {
                active_alloc = alloc_nr(active_alloc);
-               active_cache = realloc(active_cache, active_alloc * sizeof(struct cache_entry *));
+               active_cache = xrealloc(active_cache, active_alloc * sizeof(struct cache_entry *));
        }
 
        /* Add it in.. */