diff options
Diffstat (limited to 'Src/parse.c')
-rw-r--r-- | Src/parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/parse.c b/Src/parse.c index 105312f6e..7d736e4d3 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -3095,6 +3095,8 @@ load_dump_file(char *dump, struct stat *sbuf, int other, int len) return; fd = movefd(fd); + if (fd == -1) + return; if ((addr = (Wordcode) mmap(NULL, mlen, PROT_READ, MAP_SHARED, fd, off)) == ((Wordcode) -1)) { |