X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fmissing-values.c;h=912c58cf5a0bdee053d7adc9adb86ab2cc4d5105;hb=1a91de115274ee41260b3d578962166b4c10fa6a;hp=aa3ce698206ba652cef8a299c6f6926095329881;hpb=04d2c99833753252b724dd9d4f15cc3a80b6bec8;p=pspp diff --git a/src/language/dictionary/missing-values.c b/src/language/dictionary/missing-values.c index aa3ce69820..912c58cf5a 100644 --- a/src/language/dictionary/missing-values.c +++ b/src/language/dictionary/missing-values.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -38,7 +38,7 @@ int cmd_missing_values (struct lexer *lexer, struct dataset *ds) { - struct variable **v; + struct variable **v = NULL; size_t nv; int retval = CMD_FAILURE; @@ -51,11 +51,8 @@ cmd_missing_values (struct lexer *lexer, struct dataset *ds) if (!parse_variables (lexer, dataset_dict (ds), &v, &nv, PV_NONE)) goto done; - if (!lex_match (lexer, '(')) - { - lex_error (lexer, _("expecting `('")); - goto done; - } + if (!lex_force_match (lexer, '(')) + goto done; for (i = 0; i < nv; i++) var_clear_missing_values (v[i]); @@ -101,7 +98,7 @@ cmd_missing_values (struct lexer *lexer, struct dataset *ds) mv_init (&mv, MV_MAX_STRING); while (!lex_match (lexer, ')')) { - char value[MV_MAX_STRING]; + uint8_t value[MV_MAX_STRING]; size_t length; if (!lex_force_string (lexer))