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

This commit is contained in:
h_vogt 2012-05-06 15:50:55 +02:00
parent 14f884729c
commit a212be67bc
1 changed files with 1 additions and 1 deletions

View File

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