[Sheepdog] [PATCH] sheep: fix uninitialized variable
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Wed Aug 3 11:29:22 CEST 2011
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/group.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sheep/group.c b/sheep/group.c
index 235320d..02ef40b 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -1062,7 +1062,7 @@ static int is_my_cpg_addr(struct cpg_address *addr)
static int check_majority(struct cpg_address *left_list,
size_t left_list_entries)
{
- int nr_nodes = 0, nr_majority, nr_reachable, i, fd;
+ int nr_nodes = 0, nr_majority, nr_reachable = 0, i, fd;
struct node *node;
char name[INET6_ADDRSTRLEN];
--
1.7.2.5
More information about the sheepdog
mailing list