From 328b2d9f1bd732e2492460273b0eef66738975e4 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Fri, 1 Apr 2016 11:37:02 +0200 Subject: [PATCH] variable-display.c (cmd_variable_level): Check return value of lex_force_match --- src/language/dictionary/variable-display.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/language/dictionary/variable-display.c b/src/language/dictionary/variable-display.c index 67c2e13d63..657e317a4c 100644 --- a/src/language/dictionary/variable-display.c +++ b/src/language/dictionary/variable-display.c @@ -65,7 +65,8 @@ cmd_variable_alignment (struct lexer *lexer, struct dataset *ds) return CMD_FAILURE; } - lex_force_match (lexer, T_RPAREN); + if (!lex_force_match (lexer, T_RPAREN)) + return CMD_FAILURE; } else { @@ -163,7 +164,8 @@ cmd_variable_level (struct lexer *lexer, struct dataset *ds) return CMD_FAILURE; } - lex_force_match (lexer, T_RPAREN); + if (!lex_force_match (lexer, T_RPAREN)) + return CMD_FAILURE; } else { -- 2.30.2