summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-01 11:57:50 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-01 11:58:05 +0100
commit9b167d953c34cdbc6baf0f04c630d2475244fbb0 (patch)
tree4901e60d379e0f82778803209260a243f1b2ef5b
parenta74000a65cf64389d89a1014b206347795b934c7 (diff)
downloadefl-9b167d953c34cdbc6baf0f04c630d2475244fbb0.tar.gz
eolian: fix lexer assertion failure
The function was missing an "else", so a wrong branch was always executed with errors at EOF. This fixes that. @fix
-rw-r--r--src/lib/eolian/eo_lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c
index 6e4057fd43..06f11f4c18 100644
--- 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))