fix compiler warning
authorYang Tse <yangsita@gmail.com>
Tue, 23 Feb 2010 16:07:54 +0000 (16:07 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 23 Feb 2010 16:07:54 +0000 (16:07 +0000)
lib/url.c

index 0b1446c..c67e8a6 100644 (file)
--- 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