Commit 2a76b434 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

2013-01-02 Mike Frysinger <vapier@gentoo.org>

        * src/files.c: (cwd_tab_completion): Remove unnecessary variables



git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4558 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 1642e6a3
Showing with 3 additions and 6 deletions
+3 -6
2013-01-02 Mike Frysinger <vapier@gentoo.org>
* src/files.c: (cwd_tab_completion): Remove unnecessary variables
2013-01-02 Eitan Adler <lists@eitanadler.com> 2013-01-02 Eitan Adler <lists@eitanadler.com>
* configure.ac: Remove unnecessary checks * configure.ac: Remove unnecessary checks
* src/nano.h, NEWS: Fix redundant wording * src/nano.h, NEWS: Fix redundant wording
......
...@@ -2613,9 +2613,6 @@ char **cwd_tab_completion(const char *buf, bool allow_files, size_t ...@@ -2613,9 +2613,6 @@ char **cwd_tab_completion(const char *buf, bool allow_files, size_t
*num_matches, size_t buf_len) *num_matches, size_t buf_len)
{ {
char *dirname = mallocstrcpy(NULL, buf), *filename; char *dirname = mallocstrcpy(NULL, buf), *filename;
#ifndef DISABLE_OPERATINGDIR
size_t dirnamelen;
#endif
size_t filenamelen; size_t filenamelen;
char **matches = NULL; char **matches = NULL;
DIR *dir; DIR *dir;
...@@ -2654,9 +2651,6 @@ char **cwd_tab_completion(const char *buf, bool allow_files, size_t ...@@ -2654,9 +2651,6 @@ char **cwd_tab_completion(const char *buf, bool allow_files, size_t
return NULL; return NULL;
} }
#ifndef DISABLE_OPERATINGDIR
dirnamelen = strlen(dirname);
#endif
filenamelen = strlen(filename); filenamelen = strlen(filename);
while ((nextdir = readdir(dir)) != NULL) { while ((nextdir = readdir(dir)) != NULL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment