From a60910cc5460304be98cf576cc2be62f29557acf Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Tue, 10 Nov 2009 03:44:12 +0000 Subject: [PATCH] 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 --- ChangeLog | 3 ++- src/files.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f22a33b3..8a7248cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2009-11-09 Chris Allegretta - * files.c (read_file): - Remove debugging messages from file load + * files.c (read_file): - Remove debugging messages from file load. Fixes + Savannah bug 27838. 2009-11-07 Chris Allegretta * nano.h - Add bogus value at begin of flags enumeration because it diff --git a/src/files.c b/src/files.c index 396065a8..bfa2ca34 100644 --- a/src/files.c +++ b/src/files.c @@ -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); }