File qdiskd_should_assume_1_vote_if_not_specified.patch of Package cluster

commit f83663ae3b0a9ac2e0c6a5fd7e52e7af88ec0ab2
Author: Lon Hohberger <lhh@redhat.com>
Date:   Wed Dec 15 13:28:42 2010 -0500

    qdisk: Assume 1 vote if not specified in cluster.conf
    
    Resolves: rhbz#663433
    
    Signed-off-by: Lon Hohberger <lhh@redhat.com>
    Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>

diff --git a/cman/qdisk/main.c b/cman/qdisk/main.c
index 4bb2b16..8ca99f7 100644
--- a/cman/qdisk/main.c
+++ b/cman/qdisk/main.c
@@ -1386,10 +1386,11 @@ auto_qdisk_votes(int desc)
 			"/cluster/clusternodes/clusternode[%d]/@votes", ret);
 
 		name = NULL;
-		if (ccs_get(desc, buf, &name) != 0)
-			break;
+		if (ccs_get(desc, buf, &name) == 0)
+			votes = atoi(name);
+		else
+			votes = 1;
 
-		votes=atoi(name);
 		if (votes != 1) {
 			free(name);