fix compiler warning

This commit is contained in:
Yang Tse 2009-02-28 01:11:57 +00:00
parent de25ed3f37
commit df07537ccf
2 changed files with 7 additions and 7 deletions

View file

@ -428,7 +428,7 @@ CURLcode Curl_output_digest(struct connectdata *conn,
Further details on Digest implementation differences:
http://www.fngtps.com/2006/09/http-authentication
*/
if(authp->iestyle && (tmp = strchr((char *)uripath, '?'))) {
if(authp->iestyle && ((tmp = strchr((char *)uripath, '?')) != NULL)) {
md5this = (unsigned char *)aprintf("%s:%.*s", request,
(int)(tmp - (char *)uripath), uripath);
}