summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index b35427cbf00..ef96f131666 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -62,7 +62,8 @@ glusterd_friend_find_by_hostname (const char *hoststr,
glusterd_conf_t *priv = NULL;
glusterd_peerinfo_t *entry = NULL;
glusterd_peer_hostname_t *name = NULL;
- struct addrinfo *addr, *p;
+ struct addrinfo *addr = NULL;
+ struct addrinfo *p = NULL;
char *host = NULL;
struct sockaddr_in6 *s6 = NULL;
struct sockaddr_in *s4 = NULL;