From: Guy Harris Date: Fri, 12 Feb 2016 21:32:58 +0000 (-0800) Subject: We have to initialize the n_left values for the chunks as well. X-Git-Tag: libpcap-1.8.0-bp~61 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/1429988c68ed7f1a2a05f1bf448107ad9ffc33be We have to initialize the n_left values for the chunks as well. --- diff --git a/gencode.c b/gencode.c index ea641f1d..f1b3b75c 100644 --- a/gencode.c +++ b/gencode.c @@ -553,8 +553,10 @@ initchunks(compiler_state_t *cstate) { int i; - for (i = 0; i < NCHUNKS; i++) + for (i = 0; i < NCHUNKS; i++) { + cstate->chunks[i].n_left = 0; cstate->chunks[i].m = NULL; + } cstate->cur_chunk = 0; }