cluster: STABLE32 - Avoid a free() of an uninitialized variable when central processing is enabled.
Ryan McCabe
rmccabe at fedoraproject.org
Tue May 1 13:43:43 UTC 2012
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=b18d4c2d5282302cf37e752f17aad8ce168acf81
Commit: b18d4c2d5282302cf37e752f17aad8ce168acf81
Parent: 381ad4cbb476f67a7dbebac856d3aa49b8d9e061
Author: Ryan McCabe <rmccabe at redhat.com>
AuthorDate: Tue Apr 24 10:10:48 2012 -0400
Committer: Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Tue Apr 24 17:04:10 2012 +0200
Avoid a free() of an uninitialized variable when central processing is enabled.
Signed-off-by: Ryan McCabe <rmccabe at redhat.com>
---
rgmanager/src/daemons/rg_event.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rgmanager/src/daemons/rg_event.c b/rgmanager/src/daemons/rg_event.c
index 6106e70..a3c12c5 100644
--- a/rgmanager/src/daemons/rg_event.c
+++ b/rgmanager/src/daemons/rg_event.c
@@ -247,7 +247,7 @@ static int
find_master(void)
{
event_master_t *masterinfo = NULL;
- void *data;
+ void *data = NULL;
uint32_t sz;
cluster_member_list_t *m;
uint64_t vn;
More information about the cluster-commits
mailing list