projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Bugfix for memcached_connect() so that it will not always start up servers.
[awesomized/libmemcached]
/
lib
/
memcached.c
diff --git
a/lib/memcached.c
b/lib/memcached.c
index a484462b0b68370be4dd7d488433f3c504d3f3e8..e40c3db4c229d1b02e984abb7daa2aba439b2c70 100644
(file)
--- a/
lib/memcached.c
+++ b/
lib/memcached.c
@@
-41,7
+41,7
@@
void memcached_free(memcached_st *ptr)
if (ptr->is_allocated == MEMCACHED_ALLOCATED)
free(ptr);
else
-
memset(ptr, 0, sizeof(memcached_st))
;
+
ptr->is_allocated= MEMCACHED_USED
;
}
/*