From: Yang Tse Date: Tue, 23 Feb 2010 16:07:54 +0000 (+0000) Subject: fix compiler warning X-Git-Tag: upstream/7.37.1~5274 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4186b5b41f08479b84caeca4c0e0f2dd57ae5c12;p=platform%2Fupstream%2Fcurl.git fix compiler warning --- 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