Check-in Number:
|
3138 | |
Date: |
2003-Feb-03 16:31:59 (local)
2003-Feb-03 15:31:59 (UTC) |
User: | mlelstv |
Branch: | |
Comment: |
correctly initialize zlib |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/sio/sio_zlib.c 1.6 -> 1.7
--- sio_zlib.c 2003/01/20 15:34:13 1.6
+++ sio_zlib.c 2003/02/03 15:31:59 1.7
@@ -136,6 +136,12 @@
dt->u = (void *)my;
+ dt->zs.zalloc = Z_NULL;
+ dt->zs.zfree = Z_NULL;
+ dt->zs.opaque = NULL;
+ dt->zs.avail_in = 0;
+ dt->zs.avail_out = 0;
+
if (dt->lvl >= 0)
zrc = deflateInit(&dt->zs, dt->lvl);
else
|
|