projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
c++: references cannot be NULL
[awesomized/libmemcached]
/
libmemcached
/
auto.cc
diff --git
a/libmemcached/auto.cc
b/libmemcached/auto.cc
index 685528f2fae41adc40e8924016fdd3d8b88601c1..eae44a9032f646284424cb7e2267924ab9dbc5e7 100644
(file)
--- a/
libmemcached/auto.cc
+++ b/
libmemcached/auto.cc
@@
-57,8
+57,13
@@
static void auto_response(memcached_instance_st* instance, const bool reply, me
assert(memcached_last_error(instance->root) != MEMCACHED_SUCCESS);
*value= UINT64_MAX;
}
assert(memcached_last_error(instance->root) != MEMCACHED_SUCCESS);
*value= UINT64_MAX;
}
+ else if (memcached_failed(rc))
+ {
+ *value= UINT64_MAX;
+ }
else
{
else
{
+ assert(memcached_last_error(instance->root) != MEMCACHED_NOTFOUND);
*value= instance->root->result.numeric_value;
}
}
*value= instance->root->result.numeric_value;
}
}