{
memcached_return_t local_error;
- if (!error)
+ if (error == NULL)
+ {
error = &local_error;
+ }
switch (flag)
{
case MEMCACHED_CALLBACK_PREFIX_KEY:
{
- if (ptr->prefix_key)
+ if (ptr->_namespace)
{
*error= MEMCACHED_SUCCESS;
- return (void *)memcached_array_string(ptr->prefix_key);
+ return (void *)memcached_array_string(ptr->_namespace);
}
else
{
}
case MEMCACHED_CALLBACK_MAX:
default:
- WATCHPOINT_ASSERT(0);
+ assert_msg(0, "Invalid behavior passed to memcached_behavior_set()");
*error= MEMCACHED_FAILURE;
return NULL;
}