From c07ee6eaef449abb292bb84d5ba61c19a467e184 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 20 Sep 2005 09:24:51 +0000 Subject: [PATCH] - last mhash algo was missed --- http_cache_api.c | 2 +- http_response_object.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/http_cache_api.c b/http_cache_api.c index c7196c1..0cab6d9 100644 --- a/http_cache_api.c +++ b/http_cache_api.c @@ -48,7 +48,7 @@ STATUS _http_cache_global_init(INIT_FUNC_ARGS) { int l, i, c = mhash_count(); - for (i = 0; i < c; ++i) { + for (i = 0; i <= c; ++i) { char const_name[256] = {0}; const char *hash_name = mhash_get_hash_name_static(i); diff --git a/http_response_object.c b/http_response_object.c index ba1ae40..61b3c82 100644 --- a/http_response_object.c +++ b/http_response_object.c @@ -245,7 +245,7 @@ static inline void _http_response_object_declare_default_properties(TSRMLS_D) { int l, i, c = mhash_count(); - for (i = 0; i < c; ++i) { + for (i = 0; i <= c; ++i) { char const_name[256] = {0}; const char *hash_name = mhash_get_hash_name_static(i); -- 2.30.2