From: Michael Wallner Date: Fri, 7 Oct 2005 15:57:04 +0000 (+0000) Subject: - fix HTTP_ETAG_CRC32 X-Git-Tag: RELEASE_0_15_0~31 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=b3ec7edd4050ddcb0698272d18712629ec2820d1 - fix HTTP_ETAG_CRC32 --- 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: