From: Bill Stoddard Date: Fri, 15 Feb 2002 03:54:47 +0000 (+0000) Subject: Fix a nasty little bug that could be hosing mod_mem_cache as well as mod_disk_cache X-Git-Tag: 2.0.33~252 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36c5db1bfcce2492925c30e2cb6bbaf3d8dbb405;p=apache Fix a nasty little bug that could be hosing mod_mem_cache as well as mod_disk_cache git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93423 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/cache_storage.c b/modules/experimental/cache_storage.c index ac26b5c37c..c109d628d7 100644 --- a/modules/experimental/cache_storage.c +++ b/modules/experimental/cache_storage.c @@ -110,7 +110,7 @@ int cache_remove_url(request_rec *r, const char *types, char *url) */ int cache_create_entity(request_rec *r, const char *types, char *url, apr_size_t size) { - cache_handle_t *h = apr_pcalloc(r->pool, sizeof(h)); + cache_handle_t *h = apr_pcalloc(r->pool, sizeof(cache_handle_t)); const char *next = types; const char *type; char *key;