From: John Darrington Date: Sun, 4 Oct 2009 14:25:04 +0000 (+0200) Subject: CORRELATIONS: Fix bug parsing /STATISTICS=ALL X-Git-Tag: sav-api~248^2~43 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c05b6ca3fbafc33d542beb0d3acf2114a809fdfe;p=pspp CORRELATIONS: Fix bug parsing /STATISTICS=ALL --- diff --git a/src/language/stats/correlations.c b/src/language/stats/correlations.c index 69d91d03c2..e397dae53b 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);