From: John Darrington Date: Sun, 5 Feb 2012 16:32:17 +0000 (+0100) Subject: npar.c: Added some missing initialisers. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28fc20c5b4c0d1a8b5f069026155c8e80f0ecbb3;p=pspp npar.c: Added some missing initialisers. Also reorder the initialisers to the same order as their declarations --- 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 (;;) {