From b3ec7edd4050ddcb0698272d18712629ec2820d1 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 7 Oct 2005 15:57:04 +0000 Subject: [PATCH] - fix HTTP_ETAG_CRC32 --- php_http_cache_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_http_cache_api.h b/php_http_cache_api.h index be73fa6..f81f853 100644 --- a/php_http_cache_api.h +++ b/php_http_cache_api.h @@ -79,7 +79,7 @@ static inline void *_http_etag_init(TSRMLS_D) { case HTTP_ETAG_CRC32: ctx = emalloc(sizeof(unsigned int)); - memset(ctx, 1, sizeof(unsigned int)); + *((unsigned int *) ctx) = ~0; break; case HTTP_ETAG_SHA1: -- 2.30.2