projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Fix for Linux system for async protocol.
[awesomized/libmemcached]
/
lib
/
memcached.c
diff --git
a/lib/memcached.c
b/lib/memcached.c
index 861bafda95dbaf76dba54503cf90efc558268b6f..a5be8e255fab93eba37af6c3de2a7b71930b27f1 100644
(file)
--- a/
lib/memcached.c
+++ b/
lib/memcached.c
@@
-61,9
+61,12
@@
memcached_st *memcached_clone(memcached_st *clone, memcached_st *ptr)
}
new_clone= memcached_create(clone);
+
+ if (new_clone == NULL)
+ return NULL;
-
- rc= memcached_server_push(new_clone, ptr->hosts);
+ if (ptr->hosts)
+
rc= memcached_server_push(new_clone, ptr->hosts);
if (rc != MEMCACHED_SUCCESS)
{