summaryrefslogtreecommitdiff
path: root/lib/http_digest.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-02-28 01:11:57 +0000
committerYang Tse <yangsita@gmail.com>2009-02-28 01:11:57 +0000
commitdf07537ccf98fd7984563dda89218f0d3bd0d6f6 (patch)
tree3f17e885107782e02fe19dfb7368f487dc27a13c /lib/http_digest.c
parentde25ed3f37f3519d204a47d79c21610d5b983379 (diff)
downloadcurl-df07537ccf98fd7984563dda89218f0d3bd0d6f6.tar.gz
fix compiler warning
Diffstat (limited to 'lib/http_digest.c')
-rw-r--r--lib/http_digest.c2
1 files changed, 1 insertions, 1 deletions
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);
}