Skip to content

Commit

Permalink
Prevent crash when no input file given.
Browse files Browse the repository at this point in the history
  • Loading branch information
holvo committed Oct 4, 2023
1 parent 4f79105 commit 53315ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/inpcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 53315ed

Please sign in to comment.