uxnasm: reset scope to avoid pointing at garbage
This commit is contained in:
parent
428a1da50e
commit
4988b2214e
|
@ -329,6 +329,7 @@ pass1(FILE *f)
|
||||||
{
|
{
|
||||||
int ccmnt = 0;
|
int ccmnt = 0;
|
||||||
char w[64], scope[64], subw[64];
|
char w[64], scope[64], subw[64];
|
||||||
|
scope[0] = 0;
|
||||||
while(fscanf(f, "%63s", w) == 1) {
|
while(fscanf(f, "%63s", w) == 1) {
|
||||||
if(skipblock(w, &ccmnt, '(', ')')) continue;
|
if(skipblock(w, &ccmnt, '(', ')')) continue;
|
||||||
if(slen(w) >= 63)
|
if(slen(w) >= 63)
|
||||||
|
@ -364,6 +365,7 @@ pass2(FILE *f)
|
||||||
{
|
{
|
||||||
int ccmnt = 0, cmacr = 0;
|
int ccmnt = 0, cmacr = 0;
|
||||||
char w[64], scope[64], subw[64];
|
char w[64], scope[64], subw[64];
|
||||||
|
scope[0] = 0;
|
||||||
while(fscanf(f, "%63s", w) == 1) {
|
while(fscanf(f, "%63s", w) == 1) {
|
||||||
if(w[0] == '%') continue;
|
if(w[0] == '%') continue;
|
||||||
if(w[0] == '&') continue;
|
if(w[0] == '&') continue;
|
||||||
|
|
Loading…
Reference in New Issue