username_tab_completion() - Removed redundant conditional (Rocco)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@504 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
2c2c5f2156
Коммит
a711f7e638
@ -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:
|
||||
|
3
files.c
3
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
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user