Browse Source

Prevent crash when no input file given.

pre-master-46
Holger Vogt 3 years ago
parent
commit
53315ed764
  1. 2
      src/frontend/inpcom.c

2
src/frontend/inpcom.c

@ -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 */

Loading…
Cancel
Save