result_buffer= memcached_fetch_result(ptr, result_buffer, error);
- if (*error != MEMCACHED_SUCCESS)
+ if (*error != MEMCACHED_SUCCESS || result_buffer == NULL)
{
*value_length= 0;
return NULL;
unsigned int number_of_callbacks)
{
memcached_result_st *result= &ptr->result;
- memcached_return rc;
+ memcached_return rc= MEMCACHED_FAILURE;
unsigned int x;
while ((result= memcached_fetch_result(ptr, result, &rc)) != NULL) {