From de2264f712dc2b892bfe739a1a947bcd7cdf75f5 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Sat, 10 Jun 2006 01:12:38 +0200 Subject: [PATCH] ftp_process_dirlist(): minor test optiization. --- src/protocol/ftp/ftp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/protocol/ftp/ftp.c b/src/protocol/ftp/ftp.c index 7541369a..c67c92f0 100644 --- a/src/protocol/ftp/ftp.c +++ b/src/protocol/ftp/ftp.c @@ -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,