Browse Source

Exit with error if file not found: fgets() cannot read from NULL

h_vogt 14 years ago
parent
commit
a212be67bc
  1. 2
      src/frontend/rawfile.c

2
src/frontend/rawfile.c

@ -294,7 +294,7 @@ raw_read(char *name) {
if ((fp = fopen(name, "rb")) == NULL) {
perror(name);
controlled_exit(EXIT_FAILURE);
}
/* Since we call cp_evloop() from here, we have to do this junk. */

Loading…
Cancel
Save