From df07537ccf98fd7984563dda89218f0d3bd0d6f6 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 28 Feb 2009 01:11:57 +0000 Subject: fix compiler warning --- lib/http_digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/http_digest.c') diff --git a/lib/http_digest.c b/lib/http_digest.c index 1f452c7f5..ea2aebf01 100644 --- a/lib/http_digest.c +++ b/lib/http_digest.c @@ -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); } -- cgit v1.2.3