fix compiler warning

This commit is contained in:
Yang Tse
2008-09-08 19:34:58 +00:00
parent eae27d1788
commit 2ef72f7abb
4 changed files with 8 additions and 8 deletions

View File

@@ -2012,7 +2012,7 @@ static bool is_absolute_url(const char *url)
char prot[16]; /* URL protocol string storage */
char letter; /* used for a silly sscanf */
return 2 == sscanf(url, "%15[^?&/:]://%c", prot, &letter);
return (bool)(2 == sscanf(url, "%15[^?&/:]://%c", prot, &letter));
}
/*