summaryrefslogtreecommitdiff
path: root/lib/ftplistparser.c
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2010-06-02 23:55:45 +0200
committerKamil Dudka <kdudka@redhat.com>2010-06-02 23:55:45 +0200
commitbc0f3dd15e99db189ae38c04ac660a174b7c27ec (patch)
treeb03abe6c6921e6e2f2113c896419e8d0cd2899e2 /lib/ftplistparser.c
parent475c19c42b01ab23da7a90551d1b07d2ebfd2e5d (diff)
downloadcurl-bc0f3dd15e99db189ae38c04ac660a174b7c27ec.tar.gz
ftplistparser.c: oops, fix typo in the last commit
Diffstat (limited to 'lib/ftplistparser.c')
-rw-r--r--lib/ftplistparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c
index c5a2f8c45..ac6d07675 100644
--- a/lib/ftplistparser.c
+++ b/lib/ftplistparser.c
@@ -341,7 +341,7 @@ static CURLcode ftp_pl_insert_finfo(struct connectdata *conn,
/* filter pattern-corresponding filenames */
if(compare(conn->data->set.fnmatch_data, wc->pattern, finfo->filename) == 0) {
/* discard symlink which is containing multiple " -> " */
- if((finfo->filetype == CURLFILETYPE_SYMLINK) && finfo->strings.target
+ if((finfo->filetype == CURLFILETYPE_SYMLINK) && finfo->strings.target &&
(strstr(finfo->strings.target, " -> "))) {
add = FALSE;
}