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. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4468 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
869aca4392
commit
3c7dda6e7e
|
@ -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>
|
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.
|
* 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
|
Fixes Ubuntu bug 471568, "reproducible crash in nano on trying to save to a file
|
||||||
|
|
|
@ -309,7 +309,7 @@ int is_file_writable(const char *filename)
|
||||||
if (ISSET(VIEW_MODE))
|
if (ISSET(VIEW_MODE))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
assert(filename != NULL && f != NULL);
|
assert(filename != NULL);
|
||||||
|
|
||||||
/* Get the specified file's full path. */
|
/* Get the specified file's full path. */
|
||||||
full_filename = get_full_path(filename);
|
full_filename = get_full_path(filename);
|
||||||
|
|
Loading…
Reference in New Issue