fix oops in try_open
This commit is contained in:
parent
b331c4bed0
commit
521d65c058
7
C/save.c
7
C/save.c
@ -1419,9 +1419,10 @@ static int try_open(char *inpf, CELL *Astate, CELL *ATrail, CELL *AStack, CELL *
|
|||||||
int mode;
|
int mode;
|
||||||
|
|
||||||
if (streamp) {
|
if (streamp) {
|
||||||
if ((*streamp = Sopen_file(inpf, "rb")))
|
if ((*streamp = Sopen_file(inpf, "rb"))) {
|
||||||
return FAIL_RESTORE;
|
return DO_ONLY_CODE;
|
||||||
return DO_ONLY_CODE;
|
}
|
||||||
|
return FAIL_RESTORE;
|
||||||
}
|
}
|
||||||
if ((splfild = open_file(inpf, O_RDONLY)) < 0) {
|
if ((splfild = open_file(inpf, O_RDONLY)) < 0) {
|
||||||
return FAIL_RESTORE;
|
return FAIL_RESTORE;
|
||||||
|
Reference in New Issue
Block a user