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-Tag: v0.7.7~100 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d53d2523fad833f485e0f32e64e094fb5919b703;p=pspp-builds.git 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 4ef092de..51addbbe 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