summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2010-09-24 04:09:03 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-24 03:54:00 -0700
commit0cf88c1d35bbc86fdfc1b8035222b248d6725807 (patch)
treed2e3fb434c14e0f8438d541f41b373263b6bd991 /xlators/mgmt
parente9880384632d8ae489a1f6cdc5429ba6e378ce40 (diff)
mgmt/glusterd: initialize addrinfo variables
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1695 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1695
Diffstat (limited to 'xlators/mgmt')
-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;