fix compiler warning

This commit is contained in:
Yang Tse 2010-02-23 16:07:54 +00:00
parent 8904064c3a
commit 4186b5b41f
1 changed files with 1 additions and 1 deletions

View File

@ -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