uxnasm: reset scope to avoid pointing at garbage

This commit is contained in:
Sigrid Solveig Haflínudóttir 2021-11-08 18:51:14 +01:00
parent 428a1da50e
commit 4988b2214e
No known key found for this signature in database
GPG Key ID: FC8DDA5A6A7456C4
1 changed files with 2 additions and 0 deletions

View File

@ -329,6 +329,7 @@ pass1(FILE *f)
{
int ccmnt = 0;
char w[64], scope[64], subw[64];
scope[0] = 0;
while(fscanf(f, "%63s", w) == 1) {
if(skipblock(w, &ccmnt, '(', ')')) continue;
if(slen(w) >= 63)
@ -364,6 +365,7 @@ pass2(FILE *f)
{
int ccmnt = 0, cmacr = 0;
char w[64], scope[64], subw[64];
scope[0] = 0;
while(fscanf(f, "%63s", w) == 1) {
if(w[0] == '%') continue;
if(w[0] == '&') continue;