From: Padraig O'Sullivan Date: Fri, 24 Jul 2009 20:28:04 +0000 (-0400) Subject: Whoops...fixed method that was returning an incorrect return type. X-Git-Tag: 0.32~6^2~7 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4ccd4043a2b45b58311cce3354c1e5f601597c3d;p=m6w6%2Flibmemcached Whoops...fixed method that was returning an incorrect return type. --- diff --git a/libmemcached/memcached.hh b/libmemcached/memcached.hh index a2d3a90e..b6bcf516 100644 --- a/libmemcached/memcached.hh +++ b/libmemcached/memcached.hh @@ -116,7 +116,7 @@ public: if (key.empty()) { - return false; + return ret_val; } char *value= memcached_get(&memc, key.c_str(), key.length(), &value_length, &flags, &rc); @@ -138,7 +138,7 @@ public: if (master_key.empty() || key.empty()) { - return false; + return ret_val; } char *value= memcached_get_by_key(&memc, master_key.c_str(), master_key.length(),