Bug fix: Fix for bug 160 broke -nw
authorNelson Ferreira <nelson.ferreira@ieee.org>
Thu, 29 Aug 2013 11:54:46 +0000 (07:54 -0400)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Thu, 29 Aug 2013 13:16:03 +0000 (09:16 -0400)
commitf976b3bf3f0e298c91a26ec10bbd3d6eb50f785d
tree21e419f1f46cbeff674d270f4e7485e17c756743
parent438b9a2456b1d5e16a1f136a5f6799662cbdb7ce
Bug fix: Fix for bug 160 broke -nw

sxemacs -nw would quit right after startup

* src/lread.c (locate_file_in_directory_mapper): Only close
closure->fd if non-zero, which would be the result of the attempt
to check the file using access.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/lread.c