projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Bug fix for host_reset()
[m6w6/libmemcached]
/
libmemcached
/
memcached_hosts.c
diff --git
a/libmemcached/memcached_hosts.c
b/libmemcached/memcached_hosts.c
index 34bbf68941b055253c8101680e95c74c9f2c30c7..df384a9c56911958a8fad6afe709892a08b9a8b6 100644
(file)
--- a/
libmemcached/memcached_hosts.c
+++ b/
libmemcached/memcached_hosts.c
@@
-58,7
+58,6
@@
void host_reset(memcached_st *ptr, memcached_server_st *host,
const char *hostname, unsigned int port, uint32_t weight,
memcached_connection type)
{
- memset(host, 0, sizeof(memcached_server_st));
strncpy(host->hostname, hostname, MEMCACHED_MAX_HOST_LENGTH - 1);
host->root= ptr ? ptr : NULL;
host->port= port;