Gitweb:
http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 144e764cfcb5cdd937cb1eb9316146aadce794e1
Parent: 4ec386998729159bb68c74c9ddb8636d9f901025
Author: Lon Hohberger <lhh(a)redhat.com>
AuthorDate: Mon Nov 29 16:46:20 2010 -0500
Committer: Lon Hohberger <lhh(a)redhat.com>
CommitterDate: Tue Feb 15 16:01:46 2011 -0500
cman: Fix cman_tool reporting with quorum disk
This fixes a segmentation fault caused by an
uninitialized variable when running:
cman_tool nodes -F id,name,type,addr
Resolves: rhbz#654894
Signed-off-by: Lon Hohberger <lhh(a)redhat.com>
Reviewed-by: Shane Bradley <sbradley(a)redhat.com>
---
cman/cman_tool/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cman/cman_tool/main.c b/cman/cman_tool/main.c
index 9575c59..e059c9f 100644
--- a/cman/cman_tool/main.c
+++ b/cman/cman_tool/main.c
@@ -457,7 +457,7 @@ static void show_nodes(commandline_t *comline)
}
}
- int numaddrs;
+ int numaddrs = 0;
struct cman_node_address addrs[MAX_INTERFACES];
if (comline->addresses_opt || comline->format_opts) {