aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-23 16:07:54 +0000
committerYang Tse <yangsita@gmail.com>2010-02-23 16:07:54 +0000
commit4186b5b41f08479b84caeca4c0e0f2dd57ae5c12 (patch)
treeac3b6e5700814d6efdf2806dcf22de2594bc8937
parent8904064c3a06416d87e81137a53366fd0723e879 (diff)
fix compiler warning
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 0b1446c17..c67e8a6a7 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -4227,7 +4227,7 @@ static CURLcode parse_remote_port(struct SessionHandle *data,
/* we need to create new URL with the new port number */
char *url;
/* FTPS connections have the FTP bit set too, so they match as well */
- bool isftp = (bool)(conn->protocol & PROT_FTP);
+ bool isftp = (bool)(0 != (conn->protocol & PROT_FTP));
/*
* This synthesized URL isn't always right--suffixes like ;type=A