Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 161 by zhuizhuhaomeng: cache_create fatal error
http://code.google.com/p/memcached/issues/detail?id=161
What steps will reproduce the problem?
1.
cache_t* cache_create(const char *name, size_t bufsize, size_t align,
cache_constructor_t* constructor,
cache_destructor_t* destructor)
{
cache_t* ret = calloc(1, sizeof(cache_t));
char* nm = strdup(name);
void** ptr = calloc(initial_pool_size, bufsize); ---> the second
argument of the calloc is not right
What is the expected output? What do you see instead?
void** ptr = calloc(initial_pool_size, sizeof(void *));