bug fix, .include and .lib files don't have a `title' line

This commit is contained in:
rlar 2013-11-02 22:50:32 +01:00
parent bdf3dced00
commit 9b7a5ab54d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}