CORRELATIONS: Fix bug parsing /STATISTICS=ALL
[pspp-builds.git] / src / language / stats / correlations.c
index 69d91d03c2b56bb9bc71f8c5e1294db4587416fa..e397dae53b2ff482bb0ea9b31cc4b2685ddd14dd 100644 (file)
@@ -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);