From 5c3dac41d9de2c43e38690cc7bcbe678b0685b5f Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 22 Apr 2017 11:00:54 +0200 Subject: [PATCH] inpcom.c, inp_read(), #1/2, rewrite 'append' to 'end' --- src/frontend/inpcom.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index ce350ad2f..a8fba43fd 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -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);