From ac7b4013b6ada79981f5385c10c2ba242df58143 Mon Sep 17 00:00:00 2001 From: Date: Sun, 3 Feb 2008 23:20:22 -0800 Subject: [PATCH] Assert in debug to look for random allocation in get. --- lib/memcached_get.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2