X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=lib%2Fmemcached_get.c;h=80b9de378327935e648d4dbd9580beb98a490e53;hb=77d70ea2571e43495bb66efb9072f6a8b5009b64;hp=3ddeff886eb75cc8ab7af02d997dd29a75c4d043;hpb=375ad7d822a4bbc121a79ce7e927385d6be7f754;p=m6w6%2Flibmemcached diff --git a/lib/memcached_get.c b/lib/memcached_get.c index 3ddeff88..80b9de37 100644 --- a/lib/memcached_get.c +++ b/lib/memcached_get.c @@ -168,7 +168,9 @@ char *memcached_get(memcached_st *ptr, char *key, size_t key_length, goto error; } else if (*error == MEMCACHED_END) - assert(0); /* If this happens we have somehow messed up the fetch */ + { + WATCHPOINT_ASSERT(0); /* If this happens we have somehow messed up the fetch */ + } else if (*error == MEMCACHED_SUCCESS) { memcached_return rc; @@ -298,7 +300,9 @@ char *memcached_fetch(memcached_st *ptr, char *key, size_t *key_length, else if (*error == MEMCACHED_END && *value_length == 0) return NULL; else if (*error == MEMCACHED_END) - assert(0); /* If this happens we have somehow messed up the fetch */ + { + WATCHPOINT_ASSERT(0); /* If this happens we have somehow messed up the fetch */ + } else if (*error != MEMCACHED_SUCCESS) return NULL; else