Fix from re2c repo r417 (sourceforge bug
1479044).
svn path=/trunk/yasm/; revision=2025
unsigned int n = ub - lb;
unsigned int i;
unsigned char *bm = malloc(sizeof(unsigned char)*n);
- memset(bm, 0, n);
fputs("\tstatic unsigned char yybm[] = {", o);
for(i = 0; b; i += n){
unsigned char m;
unsigned int j;
+ memset(bm, 0, n);
for(m = 0x80; b && m; b = b->next, m >>= 1){
b->i = i; b->m = m;
doGen(b->go, b->on, bm-lb, m);
}
}
fputs("\n\t};\n", o); oline+=2;
+ free(bm);
}
}