projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check the return value of various calls to lex_force_match.
[pspp]
/
src
/
language
/
tests
/
moments-test.c
diff --git
a/src/language/tests/moments-test.c
b/src/language/tests/moments-test.c
index af328928abddbff93e5cb6ac59ef955ef4367e0f..b218ad4f528ce384034b7831ea5d63e6b61ef3ba 100644
(file)
--- a/
src/language/tests/moments-test.c
+++ b/
src/language/tests/moments-test.c
@@
-82,12
+82,8
@@
cmd_debug_moments (struct lexer *lexer, struct dataset *ds UNUSED)
if (lex_match_id (lexer, "ONEPASS"))
two_pass = 0;
- if (lex_token (lexer) != T_SLASH)
- {
- lex_force_match (lexer, T_SLASH);
+ if (!lex_force_match (lexer, T_SLASH))
goto done;
- }
- lex_get (lexer);
if (two_pass)
{