From: Brian Aker Date: Mon, 21 Dec 2009 07:02:19 +0000 (-0800) Subject: ICC fix X-Git-Tag: 0.37~43 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b395901e0d1e9193c2369dcd646961e2da854a75;p=awesomized%2Flibmemcached ICC fix --- diff --git a/libmemcached/response.c b/libmemcached/response.c index 4c37c051..7c42ded8 100644 --- a/libmemcached/response.c +++ b/libmemcached/response.c @@ -81,6 +81,8 @@ static memcached_return_t textual_value_fetch(memcached_server_st *ptr, size_t value_length; size_t to_read; char *value_ptr; + ssize_t read_length= 0; + memcached_return_t rrc; if (ptr->root->flags.use_udp) return MEMCACHED_NOT_SUPPORTED; @@ -173,8 +175,7 @@ static memcached_return_t textual_value_fetch(memcached_server_st *ptr, some people lazy about using the return length. */ to_read= (value_length) + 2; - ssize_t read_length= 0; - memcached_return_t rrc= memcached_io_read(ptr, value_ptr, to_read, &read_length); + rrc= memcached_io_read(ptr, value_ptr, to_read, &read_length); if (rrc != MEMCACHED_SUCCESS) return rrc;