X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fmrsets.c;h=1f281221a258c6e49d3a0183ccb74c01321008fb;hb=f4e3578b2c8ce537de5516af55a62b84ebf2b744;hp=0ea5cb8c82af87cb3096ad012c45fc8c2dab726d;hpb=72c9c6a2f92e94779b2e55d0726568090411871c;p=pspp diff --git a/src/language/dictionary/mrsets.c b/src/language/dictionary/mrsets.c index 0ea5cb8c82..1f281221a2 100644 --- a/src/language/dictionary/mrsets.c +++ b/src/language/dictionary/mrsets.c @@ -92,10 +92,16 @@ parse_group (struct lexer *lexer, struct dictionary *dict, { if (lex_match_id (lexer, "NAME")) { - if (!lex_force_match (lexer, T_EQUALS) || !lex_force_id (lexer) - || !mrset_is_valid_name (lex_tokcstr (lexer), - dict_get_encoding (dict), true)) + if (!lex_force_match (lexer, T_EQUALS) || !lex_force_id (lexer)) goto error; + char *error = mrset_is_valid_name__ (lex_tokcstr (lexer), + dict_get_encoding (dict)); + if (error) + { + lex_error (lexer, "%s", error); + free (error); + goto error; + } free (mrset->name); mrset->name = xstrdup (lex_tokcstr (lexer));