From 434dc59236e17ec68b4f572189ddb6366bbdf719 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 26 Jul 2011 06:22:51 +0000 Subject: [PATCH] fix build --- php_http_etag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2