From: Date: Mon, 4 Feb 2008 07:20:22 +0000 (-0800) Subject: Assert in debug to look for random allocation in get. X-Git-Tag: _20~26 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ac7b4013b6ada79981f5385c10c2ba242df58143;p=m6w6%2Flibmemcached Assert in debug to look for random allocation in get. --- diff --git a/lib/memcached_get.c b/lib/memcached_get.c index 62f142e1..8c3180ab 100644 --- a/lib/memcached_get.c +++ b/lib/memcached_get.c @@ -43,6 +43,7 @@ char *memcached_get_by_key(memcached_st *ptr, (void)memcached_fetch(ptr, NULL, NULL, &dummy_length, &dummy_flags, &dummy_error); + WATCHPOINT_ASSERT(dummy_length == 0); return value; }