Exit with error if file not found: fgets() cannot read from NULL
This commit is contained in:
parent
14f884729c
commit
a212be67bc
|
|
@ -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…
Reference in New Issue