1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05: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)) { if (parse_ftp_file_info(&ftp_info, buf, line_length)) {
int retv; int retv;
if ((ftp_info.name.length == 1 && ftp_info.name.source[0] == '.') if (ftp_info.name.source[0] == '.'
|| (ftp_info.name.length == 2 && ftp_info.name.source[0] == '.' && (ftp_info.name.length == 1
&& ftp_info.name.source[1] == '.')) || (ftp_info.name.length == 2
&& ftp_info.name.source[1] == '.')))
continue; continue;
retv = display_dir_entry(cached, pos, tries, colorize_dir, retv = display_dir_entry(cached, pos, tries, colorize_dir,