Prevent crash when no input file given.

This commit is contained in:
Holger Vogt 2023-10-05 00:19:51 +02:00
parent 4f79105b06
commit 53315ed764
1 changed files with 1 additions and 1 deletions

View File

@ -1010,7 +1010,7 @@ struct card *inp_readall(FILE *fp, const char *dir_name,
cc = rv.cc;
/* skip all pre-processing for expanded input files created by 'listing r' */
if (ciprefix("* expanded deck of", cc->line))
if (cc && ciprefix("* expanded deck of", cc->line))
return cc;
/* files starting with *ng_script are user supplied command files */