lib: json: Ignore spaces while scanning for tokens
The function to ignore spaces was not being called, so some tokens had whitespace in the beginning. They were correctly lexed, but parsing could eventually fail. Jira: ZEP-1607 Change-Id: I796596143895fa0fa652641f56af9a03e7a65b7a Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
parent
844ef6744e
commit
4c7803b59f
1 changed files with 1 additions and 0 deletions
|
@ -261,6 +261,7 @@ static void *lexer_json(struct lexer *lexer)
|
|||
/* fallthrough */
|
||||
default:
|
||||
if (isspace(chr)) {
|
||||
ignore(lexer);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue