Assert in debug to look for random allocation in get.
author <brian@gir.tangent.org> <>
Mon, 4 Feb 2008 07:20:22 +0000 (23:20 -0800)
committer <brian@gir.tangent.org> <>
Mon, 4 Feb 2008 07:20:22 +0000 (23:20 -0800)
lib/memcached_get.c

index 62f142e1815235b84320693064b194ba24186f00..8c3180ab9caf7e39ea7e43815e34d2354bfe7424 100644 (file)
@@ -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;
 }