mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-10 08:54:51 +00:00
Fix to properly display error if no line number
This commit is contained in:
parent
b08e65a2cd
commit
a3df27d6f3
@ -79,7 +79,7 @@ static int getnum(void) {
|
||||
line_ptr++;
|
||||
}
|
||||
|
||||
if (!line_ptr) {
|
||||
if (!(*line_ptr)) {
|
||||
fprintf(stderr,"Missing line number line %d\n",line);
|
||||
exit(-1);
|
||||
}
|
||||
@ -176,7 +176,6 @@ int main(int argc, char **argv) {
|
||||
output[offset+3]=HIGH(linenum);
|
||||
offset+=4;
|
||||
|
||||
|
||||
while(1) {
|
||||
token=find_token();
|
||||
output[offset]=token;
|
||||
|
Loading…
Reference in New Issue
Block a user