comparison tests/testdmzlib.c @ 1076:21b0aedb7b5c

Also initialize DMZLibContext.inBufferStart where needed.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 02 Mar 2015 04:46:34 +0200
parents e98bc627ad08
children 8a4df37ffe13
comparison
equal deleted inserted replaced
1075:97ccd6d972ff 1076:21b0aedb7b5c
117 "Malloc failed.\n"); 117 "Malloc failed.\n");
118 goto out; 118 goto out;
119 } 119 }
120 120
121 // Initialize decompression structures 121 // Initialize decompression structures
122 ctx.inBuffer = inBuffer; 122 ctx.inBuffer = ctx.inBufferStart = inBuffer;
123 ctx.inBufferEnd = inBuffer + *inSize; 123 ctx.inBufferEnd = inBuffer + *inSize;
124 124
125 ctx.outBuffer = ctx.outBufferStart = outBuffer; 125 ctx.outBuffer = ctx.outBufferStart = outBuffer;
126 ctx.outBufferEnd = outBuffer + SET_TMPBUF_SIZE; 126 ctx.outBufferEnd = outBuffer + SET_TMPBUF_SIZE;
127 ctx.expandable = TRUE; 127 ctx.expandable = TRUE;