From: John Darrington Date: Sun, 4 Oct 2009 14:25:04 +0000 (+0200) Subject: CORRELATIONS: Fix bug parsing /STATISTICS=ALL X-Git-Tag: fc11-x64-build11~1 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c05b6ca3fbafc33d542beb0d3acf2114a809fdfe;p=pspp-builds.git CORRELATIONS: Fix bug parsing /STATISTICS=ALL --- diff --git a/src/language/stats/correlations.c b/src/language/stats/correlations.c index 69d91d03..e397dae5 100644 --- a/src/language/stats/correlations.c +++ b/src/language/stats/correlations.c @@ -432,8 +432,11 @@ cmd_correlation (struct lexer *lexer, struct dataset *ds) opts.statistics = STATS_DESCRIPTIVES; else if (lex_match_id (lexer, "XPROD")) opts.statistics = STATS_XPROD; - else if (lex_match_id (lexer, "ALL")) - opts.statistics = STATS_ALL; + else if (lex_token (lexer) == T_ALL) + { + opts.statistics = STATS_ALL; + lex_get (lexer); + } else { lex_error (lexer, NULL);