]> git.mxchange.org Git - simgear.git/commitdiff
No bzero in MSVC
authorFrederic Bouvier <fredfgfs01@free.fr>
Mon, 29 Oct 2012 07:48:55 +0000 (08:48 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Mon, 29 Oct 2012 07:48:55 +0000 (08:48 +0100)
simgear/io/HTTPClient.cxx

index 99fb67b3aaf6c3b1446061107634950ce9f7e235..7531a1011e15a62dcaabad0ed1cbec035e7f4cf0 100644 (file)
@@ -451,7 +451,7 @@ private:
             headersComplete();
             
             if (contentGZip || contentDeflate) {
-                bzero(&zlib, sizeof(z_stream));
+                memset(&zlib, 0, sizeof(z_stream));
                 if (!zlibOutputBuffer) {
                     zlibOutputBuffer = (unsigned char*) malloc(ZLIB_DECOMPRESS_BUFFER_SIZE);
                 }