From 4186b5b41f08479b84caeca4c0e0f2dd57ae5c12 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 23 Feb 2010 16:07:54 +0000 Subject: [PATCH] fix compiler warning --- lib/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/url.c b/lib/url.c index 0b1446c..c67e8a6 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 -- 2.7.4