Better fix, remove unneeded closecode variable and update bug credit.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4419 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta
2009-11-10 03:44:12 +00:00
parent 7be32046b0
commit a60910cc54
2 changed files with 3 additions and 2 deletions

View File

@@ -515,7 +515,7 @@ void read_file(FILE *f, int fd, const char *filename, bool undoable)
nperror(filename);
fclose(f);
if (fd > 0) {
int closecode = close(fd);
close(fd);
writable = is_file_writable(filename);
}