log -L: improve error message on malformed argument
[gitweb.git] / sha1_file.c
index 69a60ec88bad190f885cd89a93573236a88ddbd9..88f06bac926008dd40b6a53e0696274438278cfc 100644 (file)
@@ -2943,7 +2943,6 @@ static int write_loose_object(const unsigned char *sha1, char *hdr, int hdrlen,
        }
 
        /* Set it up */
-       memset(&stream, 0, sizeof(stream));
        git_deflate_init(&stream, zlib_compression_level);
        stream.next_out = compressed;
        stream.avail_out = sizeof(compressed);