replace missing zalloc initialization (test_zlib now runs

successfully)
This commit is contained in:
Jeremy Hylton 1998-12-21 17:15:00 +00:00
parent 36252022ec
commit 5bc4abe006
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ PyZlib_compress(self, args)
return NULL; return NULL;
} }
zst.zalloc=(alloc_func)NULL;
zst.zfree=(free_func)Z_NULL; zst.zfree=(free_func)Z_NULL;
zst.next_out=(Byte *)output; zst.next_out=(Byte *)output;
zst.next_in =(Byte *)input; zst.next_in =(Byte *)input;