From 3716f9e7bd4b70a234a43aecb6491a65aac0e07a Mon Sep 17 00:00:00 2001 From: Dmitry Isaykin Date: Mon, 15 Feb 2010 23:45:37 +0300 Subject: [PATCH] Remove dummy check in *flags assignment in memcached_fetch --- libmemcached/fetch.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libmemcached/fetch.c b/libmemcached/fetch.c index d76f19b2..321ff85e 100644 --- a/libmemcached/fetch.c +++ b/libmemcached/fetch.c @@ -37,10 +37,7 @@ char *memcached_fetch(memcached_st *ptr, char *key, size_t *key_length, *key_length= result_buffer->key_length; } - if (result_buffer->item_flags) - *flags= result_buffer->item_flags; - else - *flags= 0; + *flags= result_buffer->item_flags; return memcached_string_c_copy(&result_buffer->value); } -- 2.30.2