Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=2f0... Commit: 2f0613c0bab7022236dcbfc3ef4bb124c5f874a1 Parent: 77279c9976e222473c041f3896046f1134ee34fe Author: Lon Hohberger lhh@redhat.com AuthorDate: Mon Feb 22 09:39:39 2010 -0500 Committer: Lon Hohberger lhh@redhat.com CommitterDate: Mon Feb 22 09:42:40 2010 -0500
qdisk: Fix uninitialized variable
This prevented proper operation of qdiskd's auto vote scheme in some cases. Suggested by Fabio Di Nitto.
Signed-off-by: Lon Hohberger lhh@redhat.com --- cman/qdisk/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cman/qdisk/main.c b/cman/qdisk/main.c index 5d984dc..d1f29c5 100644 --- a/cman/qdisk/main.c +++ b/cman/qdisk/main.c @@ -1471,7 +1471,7 @@ get_dynamic_config_data(qd_ctx *ctx, int ccsfd) static int auto_qdisk_votes(int desc) { - int x, ret = 0; + int x = 0, ret = 0; char buf[128]; char *name;
cluster-commits@lists.stg.fedorahosted.org