projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
332f2de
)
value-parser: Remove redundant call to lex_force_string() in parse_value().
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 10 Dec 2010 05:41:49 +0000
(21:41 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 12 Dec 2010 06:17:25 +0000
(22:17 -0800)
src/language/lexer/value-parser.c
patch
|
blob
|
history
diff --git
a/src/language/lexer/value-parser.c
b/src/language/lexer/value-parser.c
index 4ef092de3a3e6c884e3c236e2d159b19023eed01..51addbbe0b1308dc7ee9d23d29c9f6fdb7810952 100644
(file)
--- 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