From 28fc20c5b4c0d1a8b5f069026155c8e80f0ecbb3 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 5 Feb 2012 17:32:17 +0100 Subject: [PATCH] npar.c: Added some missing initialisers. Also reorder the initialisers to the same order as their declarations --- src/language/stats/npar.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/language/stats/npar.c b/src/language/stats/npar.c index 8d40faad01..e277d36acc 100644 --- a/src/language/stats/npar.c +++ b/src/language/stats/npar.c @@ -155,22 +155,26 @@ static int parse_npar_tests (struct lexer *lexer, struct dataset *ds, struct cmd_npar_tests *npt, struct npar_specs *nps) { - npt->binomial = 0; npt->chisquare = 0; - npt->ks_one_sample = 0; npt->cochran = 0; + npt->binomial = 0; + npt->ks_one_sample = 0; + npt->wilcoxon = 0; + npt->sign = 0; + npt->runs = 0; npt->friedman = 0; + npt->kendall = 0; npt->kruskal_wallis = 0; npt->mann_whitney = 0; - npt->jonckheere_terpstra = 0; npt->mcnemar = 0; - npt->runs = 0; - npt->sign = 0; - npt->wilcoxon = 0; - npt->missing = 0; + npt->median = 0; + npt->jonckheere_terpstra = 0; + npt->miss = MISS_ANALYSIS; + npt->missing = 0; npt->method = 0; npt->statistics = 0; + memset (npt->a_statistics, 0, sizeof npt->a_statistics); for (;;) { -- 2.30.2