Joe Maimon <jmaimon at ttec.com> wrote: > *pitem = state->stack[state->depth - 1]; > + if(state->depth > 1) > + state->depth--; > I don't think that's correct. See the "pop/push" code a few lines below. I've committed a partial set of your patches, and am going over the rest. Alan DeKok.