From: Brian Aker Date: Fri, 14 Dec 2012 09:45:05 +0000 (-0500) Subject: Slight style cleanup. X-Git-Tag: 1.0.15~2^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=aeebf98f4ca24050e105124ce8c27fc7260c9db0;p=m6w6%2Flibmemcached Slight style cleanup. --- diff --git a/libmemcached/fetch.cc b/libmemcached/fetch.cc index 70e5bf75..76663703 100644 --- a/libmemcached/fetch.cc +++ b/libmemcached/fetch.cc @@ -2,7 +2,7 @@ * * Libmemcached library * - * Copyright (C) 2011 Data Differential, http://datadifferential.com/ + * Copyright (C) 2011-2012 Data Differential, http://datadifferential.com/ * Copyright (C) 2006-2009 Brian Aker All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -42,7 +42,6 @@ char *memcached_fetch(memcached_st *ptr, char *key, size_t *key_length, uint32_t *flags, memcached_return_t *error) { - memcached_result_st *result_buffer= &ptr->result; memcached_return_t unused; if (error == NULL) { @@ -75,6 +74,7 @@ char *memcached_fetch(memcached_st *ptr, char *key, size_t *key_length, return NULL; } + memcached_result_st *result_buffer= &ptr->result; result_buffer= memcached_fetch_result(ptr, result_buffer, error); if (result_buffer == NULL or memcached_failed(*error)) {