From 321ae653b64e7f2e6e230761eccb719cc9696b9f Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 25 Oct 2010 12:59:24 +0000 Subject: [PATCH] Fix missing initilisation to 0 Add missing init value for variable 'found' which is later tested and may have contained some garbage value. --- WHATS_NEW | 1 + daemons/cmirrord/cluster.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 678ff87d4..52d69fa0e 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.75 - ===================================== + Fix missing initilization in cluser_send() function rom cmirrord. Fix pointer for VG name in _pv_resize_single error code path. Fix warning for changed alignment requirements for dmeventd read/write func. Add global/metadata_read_only to use unrepaired metadata in read-only cmds. diff --git a/daemons/cmirrord/cluster.c b/daemons/cmirrord/cluster.c index dddaec93d..b6c925aa0 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;