The new runtime has parameter checking, and this one
would cause NetHack pop up a dialog and die.
This commit is contained in:
nethack.allison
2006-10-02 03:43:31 +00:00
parent 0e5159b6b7
commit 58a1828f18

View File

@@ -629,7 +629,8 @@ really_close()
lftrack.nethack_thinks_it_is_open = FALSE;
lftrack.fd = -1;
lftrack.oflag = 0;
(void)_close(fd);
if (fd != -1)
(void)_close(fd);
return;
}