]> git.wh0rd.org Git - nano.git/commitdiff
in cwd_tab_completion(), remove unneeded assert
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 11 Oct 2007 15:19:45 +0000 (15:19 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 11 Oct 2007 15:19:45 +0000 (15:19 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4174 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/files.c

index 45bb1c953f12f3f79b9f0ec31befcd7b02148e99..c276e3dd07a2c1fc94009bc0993a94667e311d1b 100644 (file)
--- 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>
 
index 347d90a0ce1d09b88cff4cfe5c76c876e8955060..1907b87ae7ad41f9581ec85e7d91ac3e57c8f405 100644 (file)
@@ -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);