From: Michael Wallner Date: Tue, 26 Jul 2011 06:22:51 +0000 (+0000) Subject: fix build X-Git-Tag: DEV_2-before-client~103 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=434dc59236e17ec68b4f572189ddb6366bbdf719;p=m6w6%2Fext-http fix build --- diff --git a/php_http_etag.c b/php_http_etag.c index 40757f7..c56aa49 100644 --- a/php_http_etag.c +++ b/php_http_etag.c @@ -1,5 +1,6 @@ #include "php_http.h" + #ifdef PHP_HTTP_HAVE_HASH # include "php_hash.h" #endif @@ -48,7 +49,7 @@ PHP_HTTP_API char *php_http_etag_finish(php_http_etag_t *e) #ifdef PHP_HTTP_HAVE_HASH const php_hash_ops *eho = NULL; - if (mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) { + if (e->mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) { eho->hash_final(digest, e->ctx); etag = php_http_etag_digest(digest, eho->digest_size); } else