projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a74000a
)
eolian: fix lexer assertion failure
author
Daniel Kolesa
<d.kolesa@osg.samsung.com>
Fri, 1 May 2015 10:57:50 +0000
(11:57 +0100)
committer
Daniel Kolesa
<d.kolesa@osg.samsung.com>
Fri, 1 May 2015 10:58:05 +0000
(11:58 +0100)
The function was missing an "else", so a wrong branch was always
executed with errors at EOF. This fixes that.
@fix
src/lib/eolian/eo_lexer.c
patch
|
blob
|
history
diff --git
a/src/lib/eolian/eo_lexer.c
b/src/lib/eolian/eo_lexer.c
index 6e4057fd4333d7ea7bfffd833de9a0ba70793114..06f11f4c1807b3ff580221a67be093e3adf9c172 100644
(file)
--- a/
src/lib/eolian/eo_lexer.c
+++ b/
src/lib/eolian/eo_lexer.c
@@
-788,7
+788,7
@@
eo_lexer_token_to_str(int token, char *buf)
{
memcpy(buf, "<eof>", 6);
}
- if (token < START_CUSTOM)
+
else
if (token < START_CUSTOM)
{
assert((unsigned char)token == token);
if (iscntrl(token))