From 60a701e09b8a7b033186c37e3ad488bf14e4262d Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 11 Oct 2007 15:19:45 +0000 Subject: [PATCH] in cwd_tab_completion(), remove unneeded assert git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4174 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ src/files.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 53703e2a..81332aa5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -48,6 +48,8 @@ CVS code - (DLR) username_tab_completion(), cwd_tab_completion(), input_tab() - Update copyright notice to account for modifications. (DLR) + cwd_tab_completion() + - Remove unneeded assert. (DLR) - nano.c: version() - Display copyright notices. (DLR) diff --git a/src/files.c b/src/files.c index 347d90a0..1907b87a 100644 --- 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); -- 2.39.5