nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit b4b553665c5022b8caaf1e1915bcc1bd22e13e80
parent d8a1d37161d3ed14a8522dd1660bd0f0f8fae9b2
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Thu, 11 Oct 2007 15:19:45 +0000

in cwd_tab_completion(), remove unneeded assert


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4174 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 1+
Msrc/files.c | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -6,6 +6,7 @@ Software Foundation. * doc/man/nanorc.5, doc/man/fr/nanorc.5: Make copyright notices for these files consistent in style. + * files.c (cwd_tab_completion): Remove unneeded assert. 2007-10-05 David Lawrence Ramsey <pooka109@gmail.com> diff --git a/src/files.c b/src/files.c @@ -2195,7 +2195,7 @@ char **cwd_tab_completion(const char *buf, bool allow_files, size_t DIR *dir; const struct dirent *nextdir; - assert(dirname != NULL && num_matches != NULL && buflen >= 0); + assert(dirname != NULL && num_matches != NULL); *num_matches = 0; null_at(&dirname, buflen);