From: Chris Allegretta Date: Sun, 20 Dec 2009 05:55:41 +0000 (+0000) Subject: 2009-12-20 Chris Allegretta X-Git-Tag: v2.2.2~10 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3c7dda6e7e192ee0a6d3d4703299700754b10fc0;p=nano.git 2009-12-20 Chris Allegretta * files.c (is_file_writable): remove assert check for f, since it's not initialized at the time. Fixes Savannah bug 28309, reported by Zoltan Kovacs. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4468 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 6a98054a..8d3f0bcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-12-20 Chris Allegretta + * files.c (is_file_writable): remove assert check for f, since it's not + initialized at the time. Fixes Savannah bug 28309, reported by Zoltan Kovacs. + 2009-12-20 Brian Szymanski * src/files.c (write_file): Check stat struct exists, and if not use just obtained stat data. Fixes Ubuntu bug 471568, "reproducible crash in nano on trying to save to a file diff --git a/src/files.c b/src/files.c index 1355d380..abf7d2eb 100644 --- a/src/files.c +++ b/src/files.c @@ -309,7 +309,7 @@ int is_file_writable(const char *filename) if (ISSET(VIEW_MODE)) return TRUE; - assert(filename != NULL && f != NULL); + assert(filename != NULL); /* Get the specified file's full path. */ full_filename = get_full_path(filename);