From 9b7a5ab54db652ee6e937734ad6fe4fae902f0df Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 2 Nov 2013 22:50:32 +0100 Subject: [PATCH] bug fix, .include and .lib files don't have a `title' line --- src/frontend/inpcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index f591cdc87..da8b04d23 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -782,7 +782,7 @@ inp_readall(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile } /* Replace first line with the new title, if available */ - if (new_title != NULL) { + if (call_depth == 0 && new_title) { tfree(cc->li_line); cc->li_line = new_title; }