mirror of https://github.com/python/cpython
replace missing zalloc initialization (test_zlib now runs
successfully)
This commit is contained in:
parent
36252022ec
commit
5bc4abe006
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue