inpcom.c, inp_read(), #1/2, rewrite 'append' to 'end'
This commit is contained in:
parent
ed39305da0
commit
5c3dac41d9
|
|
@ -823,11 +823,11 @@ inp_read(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile)
|
|||
|
||||
if (end)
|
||||
end->li_next = x;
|
||||
else
|
||||
cc = x;
|
||||
|
||||
end = x;
|
||||
|
||||
if (!cc)
|
||||
cc = end;
|
||||
|
||||
line_number++;
|
||||
}
|
||||
|
||||
|
|
@ -904,10 +904,10 @@ inp_read(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile)
|
|||
|
||||
if (end)
|
||||
end->li_next = x;
|
||||
else
|
||||
cc = x;
|
||||
|
||||
end = x;
|
||||
|
||||
if (!cc)
|
||||
cc = end;
|
||||
}
|
||||
|
||||
tfree(buffer);
|
||||
|
|
|
|||
Loading…
Reference in New Issue