mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
initialize next_in/out etc.
This commit is contained in:
parent
d3d3df5c5c
commit
503e28dd82
@ -82,6 +82,8 @@ open_read(istream *source, bool owns_source) {
|
||||
|
||||
_z_source.next_in = Z_NULL;
|
||||
_z_source.avail_in = 0;
|
||||
_z_source.next_out = Z_NULL;
|
||||
_z_source.avail_out = 0;
|
||||
#ifdef USE_MEMORY_NOWRAPPERS
|
||||
_z_source.zalloc = Z_NULL;
|
||||
_z_source.zfree = Z_NULL;
|
||||
@ -133,6 +135,10 @@ open_write(ostream *dest, bool owns_dest, int compression_level) {
|
||||
_dest = dest;
|
||||
_owns_dest = owns_dest;
|
||||
|
||||
_z_dest.next_in = Z_NULL;
|
||||
_z_dest.avail_in = 0;
|
||||
_z_dest.next_out = Z_NULL;
|
||||
_z_dest.avail_out = 0;
|
||||
#ifdef USE_MEMORY_NOWRAPPERS
|
||||
_z_dest.zalloc = Z_NULL;
|
||||
_z_dest.zfree = Z_NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user