Skip to content

Commit 0bee48d

Browse files
committedSep 12, 2020
Check strlen of instruction
1 parent 0ae10a6 commit 0bee48d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎labels.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ int labels_phase_one(FILE *fp)
138138
label = labels_get_name(instruction);
139139
labels_insert(label, address);
140140
}
141-
else
141+
else if (strlen(instruction) > 0)
142142
address += XSM_INSTRUCTION_SIZE;
143143
}
144144

0 commit comments

Comments
 (0)
Please sign in to comment.