X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fxforms%2Fselect-if.c;h=1466222b99622bebf28a51736898c88a75f170dd;hb=9105b67fe006fe41c044e3659325594a52d0c899;hp=7d727e44e46ab3ba55ca0755841bf5ae2675c671;hpb=888d0f91d57e0c3c5a4206c30ac71eb87bf44227;p=pspp diff --git a/src/language/xforms/select-if.c b/src/language/xforms/select-if.c index 7d727e44e4..1466222b99 100644 --- a/src/language/xforms/select-if.c +++ b/src/language/xforms/select-if.c @@ -1,6 +1,5 @@ /* PSPP - computes sample statistics. Copyright (C) 1997-9, 2000 Free Software Foundation, Inc. - Written by Ben Pfaff . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -96,12 +95,12 @@ cmd_filter (struct lexer *lexer, struct dataset *ds) { struct dictionary *dict = dataset_dict (ds); if (lex_match_id (lexer, "OFF")) - dict_set_filter (dataset_dict (ds), NULL); - else if (lex_token (lexer) == '.') + dict_set_filter (dict, NULL); + else if (lex_token (lexer) == '.') { msg (SW, _("Syntax error expecting OFF or BY. " "Turning off case filtering.")); - dict_set_filter (dataset_dict (ds), NULL); + dict_set_filter (dict, NULL); } else {