inpcom.c, inp_read(), rewrite appending to the tail
This commit is contained in:
parent
8926cda427
commit
be5a4809ae
|
|
@ -824,11 +824,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++;
|
||||
}
|
||||
|
||||
|
|
@ -905,10 +905,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