From: Michael Wallner Date: Tue, 20 Sep 2005 09:24:51 +0000 (+0000) Subject: - last mhash algo was missed X-Git-Tag: RELEASE_0_14_0~11 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c07ee6eaef449abb292bb84d5ba61c19a467e184;p=m6w6%2Fext-http - last mhash algo was missed --- 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);