projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Update/fix for OSX
[m6w6/libmemcached]
/
libmemcached
/
result.cc
diff --git
a/libmemcached/result.cc
b/libmemcached/result.cc
index a3438c08c9b0f2ed07a73296c474ebb601e91607..444a75f4135091b88589c925eb4f76f4e76dac35 100644
(file)
--- a/
libmemcached/result.cc
+++ b/
libmemcached/result.cc
@@
-52,6
+52,7
@@
static inline void _result_init(memcached_result_st *self,
self->key_length= 0;
self->item_cas= 0;
self->root= memc;
self->key_length= 0;
self->item_cas= 0;
self->root= memc;
+ self->numeric_value= UINT64_MAX;
self->count= 0;
self->item_key[0]= 0;
}
self->count= 0;
self->item_key[0]= 0;
}
@@
-97,6
+98,7
@@
void memcached_result_reset(memcached_result_st *ptr)
ptr->item_flags= 0;
ptr->item_cas= 0;
ptr->item_expiration= 0;
ptr->item_flags= 0;
ptr->item_cas= 0;
ptr->item_expiration= 0;
+ ptr->numeric_value= UINT64_MAX;
}
void memcached_result_free(memcached_result_st *ptr)
}
void memcached_result_free(memcached_result_st *ptr)
@@
-107,6
+109,7
@@
void memcached_result_free(memcached_result_st *ptr)
}
memcached_string_free(&ptr->value);
}
memcached_string_free(&ptr->value);
+ ptr->numeric_value= UINT64_MAX;
if (memcached_is_allocated(ptr))
{
if (memcached_is_allocated(ptr))
{