key= result->key;
result->key_length= 0;
- for (prefix_length= ptr->root->prefix_key_length; isgraph(*string_ptr); string_ptr++)
+ for (prefix_length= ptr->root->prefix_key_length; !(iscntrl(*string_ptr) || isspace(*string_ptr)) ; string_ptr++)
{
if (prefix_length == 0)
{
if (result == NULL)
result= memcached_result_create(ptr, NULL);
- WATCHPOINT_ASSERT(result->value.is_allocated != MEMCACHED_USED);
-
#ifdef UNUSED
if (ptr->flags & MEM_NO_BLOCK)
memcached_io_preread(ptr);
}
/* We have completed reading data */
- if (result->is_allocated == MEMCACHED_ALLOCATED)
+ if (result->is_allocated)
memcached_result_free(result);
else
memcached_string_reset(&result->value);