summaryrefslogtreecommitdiff
path: root/src
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 /src
parenta74000a65cf64389d89a1014b206347795b934c7 (diff)
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
Diffstat (limited to 'src')
-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)
788 { 788 {
789 memcpy(buf, "<eof>", 6); 789 memcpy(buf, "<eof>", 6);
790 } 790 }
791 if (token < START_CUSTOM) 791 else if (token < START_CUSTOM)
792 { 792 {
793 assert((unsigned char)token == token); 793 assert((unsigned char)token == token);
794 if (iscntrl(token)) 794 if (iscntrl(token))