[stgt] [PATCH] iscsi: silence compile warning

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Thu Jun 16 19:55:05 CEST 2011


Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 usr/iscsi/iscsi_tcp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/iscsi/iscsi_tcp.c b/usr/iscsi/iscsi_tcp.c
index 88d27af..1988b2f 100644
--- a/usr/iscsi/iscsi_tcp.c
+++ b/usr/iscsi/iscsi_tcp.c
@@ -176,7 +176,7 @@ int iscsi_tcp_init_portal(char *addr, int port, int tpgt)
 	int ret, fd, opt, nr_sock = 0;
 	struct iscsi_portal *portal = NULL;
 	char addrstr[64];
-	void *addrptr;
+	void *addrptr = NULL;
 
 	port = port ? port : ISCSI_LISTEN_PORT;
 
-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list