X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Ft-test-parser.c;h=7c8d8a548a5ea42b7343e5fe8b5b716c744bc37a;hb=32ee0e0402d6d56674f53a47d879ec5c07dabe09;hp=51f30b9cfcd16a383af8725b8dfd94f685216ea3;hpb=71eea20b080f51f1aa00ef35acf4f49ce742d10a;p=pspp diff --git a/src/language/stats/t-test-parser.c b/src/language/stats/t-test-parser.c index 51f30b9cfc..7c8d8a548a 100644 --- a/src/language/stats/t-test-parser.c +++ b/src/language/stats/t-test-parser.c @@ -68,6 +68,7 @@ cmd_t_test (struct lexer *lexer, struct dataset *ds) tt.missing_type = MISS_ANALYSIS; tt.n_vars = 0; tt.vars = NULL; + tt.mode = MODE_undef; lex_match (lexer, T_EQUALS); @@ -128,6 +129,13 @@ cmd_t_test (struct lexer *lexer, struct dataset *ds) { bool with = false; bool paired = false; + + if (tt.n_vars > 0) + { + msg (SE, _("VARIABLES subcommand may not be used with PAIRS.")); + goto parse_failed; + } + mode_count++; tt.mode = MODE_PAIRED; lex_match (lexer, T_EQUALS);