Don't special-case a zero-sized compression.
[git.git] / unpack-objects.c
index 97d2681..6383db9 100644 (file)
@@ -55,8 +55,6 @@ static void *get_data(unsigned long size)
        z_stream stream;
        void *buf = xmalloc(size);
 
-       if (!size)
-               return buf;
        memset(&stream, 0, sizeof(stream));
 
        stream.next_out = buf;