Browse Source

safeguard fclose

pre-master-46
Holger Vogt 8 years ago
parent
commit
e5652cd745
  1. 2
      src/frontend/inp.c

2
src/frontend/inp.c

@ -405,7 +405,7 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
/* if nothing came back from inp_readall, just close fp and return to caller */
if (!deck) {
if (!intfile)
if (!intfile && fp)
fclose(fp);
return;
}

Loading…
Cancel
Save