Blame 0079-iscsiadm-Initialize-param_count-in-set_host_chap_inf.patch

3f3ec3
From 5762ac0a9520d10e727b539403eacb7ab092e45f Mon Sep 17 00:00:00 2001
3f3ec3
From: Manish Rangankar <manish.rangankar@qlogic.com>
3f3ec3
Date: Thu, 17 Jul 2014 05:27:20 -0400
3f3ec3
Subject: [PATCH] iscsiadm: Initialize param_count in set_host_chap_info
3f3ec3
3f3ec3
Signed-off-by: Manish Rangankar <manish.rangankar@qlogic.com>
3f3ec3
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
3f3ec3
---
3f3ec3
 usr/iscsiadm.c | 2 +-
3f3ec3
 1 file changed, 1 insertion(+), 1 deletion(-)
3f3ec3
3f3ec3
diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c
3f3ec3
index 389f4b8..f886d39 100644
3f3ec3
--- a/usr/iscsiadm.c
3f3ec3
+++ b/usr/iscsiadm.c
3f3ec3
@@ -1503,7 +1503,7 @@ static int set_host_chap_info(uint32_t host_no, uint64_t chap_index,
3f3ec3
 	struct iovec *iovs = NULL;
3f3ec3
 	struct iovec *iov = NULL;
3f3ec3
 	int type;
3f3ec3
-	int param_count;
3f3ec3
+	int param_count = 0;
3f3ec3
 	int param_used;
3f3ec3
 	int rc = 0;
3f3ec3
 	int fd, i = 0;
3f3ec3
-- 
3f3ec3
1.9.3
3f3ec3