[lvm-devel] [PATCH 14/30] Fix missing initilisation to 0

Zdenek Kabelac zkabelac at redhat.com
Mon Oct 25 08:24:21 UTC 2010


Missing init value for 'found' which is later tested and may
containe garbage value.

Signed-off-by: Zdenek Kabelac <zkabelac at redhat.com>
---
 daemons/cmirrord/cluster.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemons/cmirrord/cluster.c b/daemons/cmirrord/cluster.c
index dddaec9..b6c925a 100644
--- a/daemons/cmirrord/cluster.c
+++ b/daemons/cmirrord/cluster.c
@@ -129,7 +129,7 @@ int cluster_send(struct clog_request *rq)
 {
 	int r;
 	int count=0;
-	int found;
+	int found = 0;
 	struct iovec iov;
 	struct clog_cpg *entry;
 
-- 
1.7.3.1




More information about the lvm-devel mailing list