diff --git a/ChangeLog b/ChangeLog index 6a98054a1095b9e3f8a828b14dd2890a5a38fa90..8d3f0bcd232e76cf5db8c6138eed85ece6afe4e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-12-20 Chris Allegretta <chrisa@asty.org> + * 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 <skibrianski via Savannah> * 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 1355d38055c0bec6cabcac27247d811641053d46..abf7d2eb2bbf4c447d5e4b332735e3160a915b67 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);