projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Patch by Toru Maesaka for stats comparison
[m6w6/libmemcached]
/
lib
/
memcached_hosts.c
diff --git
a/lib/memcached_hosts.c
b/lib/memcached_hosts.c
index 5661e541180fdcb64a0e1b0d8cd433f59b322bfc..6f49b270a98b305426d168ea528b11c3d16e3a8c 100644
(file)
--- a/
lib/memcached_hosts.c
+++ b/
lib/memcached_hosts.c
@@
-148,8
+148,8
@@
memcached_server_st *memcached_server_list_append(memcached_server_st *ptr,
unsigned int count;
memcached_server_st *new_host_list;
- if (
!hostname
)
- return
ptr
;
+ if (
hostname == NULL || error == NULL
)
+ return
NULL
;
if (!port)
port= MEMCACHED_DEFAULT_PORT;