removed uninitialised memory read

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7240 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-04-05 16:28:22 +00:00
parent 40b175ef44
commit fbec967b0c

View File

@ -122,11 +122,13 @@ bool RsCompress::uncompress_memory_chunk(const uint8_t *input_mem,const uint32_t
unsigned char out[CHUNK];
/* allocate inflate state */
memset(&strm,0,sizeof(strm)) ;
strm.zalloc = Z_NULL;
strm.zfree = Z_NULL;
strm.opaque = Z_NULL;
strm.avail_in = 0;
strm.next_in = Z_NULL;
strm.next_out = Z_NULL;
ret = inflateInit(&strm);
if (ret != Z_OK)
return ret;