cluster: RHEL6 - rgmanager: Fix uninitialized variable

Lon Hohberger lon at fedoraproject.org
Wed Sep 7 14:56:09 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=3a113c9b3b60f2a18a3b653b83edac5c89074af7
Commit:        3a113c9b3b60f2a18a3b653b83edac5c89074af7
Parent:        c899e38f3dd412dd2f8263a301805312f54fbb60
Author:        Lon Hohberger <lhh at redhat.com>
AuthorDate:    Tue Sep 6 15:41:03 2011 -0400
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Wed Sep 7 10:55:42 2011 -0400

rgmanager: Fix uninitialized variable

Resolves: rhbz#734730

Signed-off-by: Lon Hohberger <lhh at redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
 rgmanager/src/daemons/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rgmanager/src/daemons/main.c b/rgmanager/src/daemons/main.c
index 38c7007..94047c3 100644
--- a/rgmanager/src/daemons/main.c
+++ b/rgmanager/src/daemons/main.c
@@ -798,7 +798,7 @@ rgmanager_disabled(int ccsfd)
 {
 	char *v;
 	int disabled = 0;
-	int internal;
+	int internal = 0;
 
 	if (ccsfd < 0) {
 		internal = 1;


More information about the cluster-commits mailing list