From: Trond Norbye Date: Sun, 14 Jun 2009 12:05:13 +0000 (+0200) Subject: Clone should also preserve calloc X-Git-Tag: 0.31~17^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=cb5a5adeef19f8fc4ff2614ce3baa4dd0db590ba;p=awesomized%2Flibmemcached Clone should also preserve calloc --- diff --git a/libmemcached/memcached.c b/libmemcached/memcached.c index 1e4cc92e..61a3b399 100644 --- a/libmemcached/memcached.c +++ b/libmemcached/memcached.c @@ -98,6 +98,7 @@ memcached_st *memcached_clone(memcached_st *clone, memcached_st *source) new_clone->call_free= source->call_free; new_clone->call_malloc= source->call_malloc; new_clone->call_realloc= source->call_realloc; + new_clone->call_calloc= source->call_calloc; new_clone->get_key_failure= source->get_key_failure; new_clone->delete_trigger= source->delete_trigger; new_clone->server_failure_limit= source->server_failure_limit; diff --git a/tests/function.c b/tests/function.c index 8ab61917..4b7fbdee 100644 --- a/tests/function.c +++ b/tests/function.c @@ -215,6 +215,7 @@ static test_return clone_test(memcached_st *memc) assert(clone->call_free == memc->call_free); assert(clone->call_malloc == memc->call_malloc); assert(clone->call_realloc == memc->call_realloc); + assert(clone->call_calloc == memc->call_calloc); assert(clone->connect_timeout == memc->connect_timeout); assert(clone->delete_trigger == memc->delete_trigger); assert(clone->distribution == memc->distribution);