From: Chris Allegretta Date: Tue, 23 Jan 2001 04:16:31 +0000 (+0000) Subject: username_tab_completion() - Removed redundant conditional (Rocco) X-Git-Tag: v0.9.99pre2~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a711f7e6388d1a7a29f3665cffe3718c51ca3964;p=nano.git username_tab_completion() - Removed redundant conditional (Rocco) git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@504 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 95f244af..0455f8b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ General username_tab_completion() - Optimization and removal of useless vars (Rocco). - Rewritten using getpwent (suggested by Rocco). + - Removed redundant conditional (Rocco). real_dir_from_tilde() - Rewritten using getpwent (suggested by Adam, much optimized by Rocco). - global.c: diff --git a/files.c b/files.c index 5c14760d..ebc9b554 100644 --- a/files.c +++ b/files.c @@ -687,9 +687,6 @@ char **username_tab_completion(char *buf, int *num_matches) while ((userdata = getpwent()) != NULL) { - if (userdata == NULL) - break; - if (check_wildcard_match(userdata->pw_name, &buf[1]) == TRUE) { /* Cool, found a match. Add it to the list