From: Ben Pfaff Date: Fri, 10 Dec 2010 05:41:49 +0000 (-0800) Subject: value-parser: Remove redundant call to lex_force_string() in parse_value(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fbuilds%2F134%2Fpspp;p=pspp value-parser: Remove redundant call to lex_force_string() in parse_value(). --- diff --git a/src/language/lexer/value-parser.c b/src/language/lexer/value-parser.c index 4ef092de3a..51addbbe0b 100644 --- a/src/language/lexer/value-parser.c +++ b/src/language/lexer/value-parser.c @@ -143,12 +143,7 @@ parse_value (struct lexer *lexer, union value *v, int width) } else if (lex_force_string (lexer)) { - const char *s; - - if (!lex_force_string (lexer)) - return false; - - s = lex_tokcstr (lexer); + const char *s = lex_tokcstr (lexer); value_copy_str_rpad (v, width, CHAR_CAST_BUG (const uint8_t *, s), ' '); } else