From: David Lawrence Ramsey Date: Tue, 7 Nov 2006 21:41:05 +0000 (+0000) Subject: in get_full_path(), remove unneeded assert X-Git-Tag: v2.0.1~17 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6c3a3998176780da11a9b1b1d1850e3f102fa841;p=nano.git in get_full_path(), remove unneeded assert git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3939 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index c8a0bdb5..f971bb15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ CVS code - - General: - Miscellaneous comment fixes. (DLR) - files.c: + get_full_path() + - Remove unneeded assert. (DLR) do_writeout() - For consistency, when saving a file with no name, don't allow overwriting an existing file when in restricted diff --git a/src/files.c b/src/files.c index 6878ace7..2ae9d7d1 100644 --- a/src/files.c +++ b/src/files.c @@ -954,8 +954,6 @@ char *get_full_path(const char *origpath) d_there = real_dir_from_tilde(origpath); - assert(d_there != NULL); - /* If stat()ing d_there fails, assume that d_there refers to a new * file that hasn't been saved to disk yet. Set path_only to TRUE * if d_there refers to a directory, and FALSE otherwise. */