1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

ftp_process_dirlist(): minor test optiization.

This commit is contained in:
Laurent MONIN 2006-06-10 01:12:38 +02:00 committed by Laurent MONIN
parent 6960fc8feb
commit de2264f712

View File

@ -1210,9 +1210,10 @@ ftp_process_dirlist(struct cache_entry *cached, off_t *pos,
if (parse_ftp_file_info(&ftp_info, buf, line_length)) {
int retv;
if ((ftp_info.name.length == 1 && ftp_info.name.source[0] == '.')
|| (ftp_info.name.length == 2 && ftp_info.name.source[0] == '.'
&& ftp_info.name.source[1] == '.'))
if (ftp_info.name.source[0] == '.'
&& (ftp_info.name.length == 1
|| (ftp_info.name.length == 2
&& ftp_info.name.source[1] == '.')))
continue;
retv = display_dir_entry(cached, pos, tries, colorize_dir,