]> git.ipfire.org Git - thirdparty/git.git/blobdiff - mem-pool.c
block alloc: allocate cache entries from mem_pool
[thirdparty/git.git] / mem-pool.c
index b250a5fe40bb44eccdf053f49f8fd40a1ce10980..139617cb233720964b33d9b39b87bf39cc2f3705 100644 (file)
@@ -54,7 +54,8 @@ void mem_pool_discard(struct mem_pool *mem_pool)
 {
        struct mp_block *block, *block_to_free;
 
-       while ((block = mem_pool->mp_block))
+       block = mem_pool->mp_block;
+       while (block)
        {
                block_to_free = block;
                block = block->next_block;