summaryrefslogtreecommitdiffstats
path: root/contrib/src/jsmn/jsmn.c
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-01-13 16:47:44 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-01-13 16:47:44 (GMT)
commit4f6cbe9e7aec2b4a6c8f286f9097abfb011a6235 (patch)
tree8c023473bb342780ddf51a893d18369f1319bb5c /contrib/src/jsmn/jsmn.c
parent0aa0fe08dc308c94379c47d0bf9745e341cb4c81 (diff)
downloaduscxml-4f6cbe9e7aec2b4a6c8f286f9097abfb011a6235.zip
uscxml-4f6cbe9e7aec2b4a6c8f286f9097abfb011a6235.tar.gz
uscxml-4f6cbe9e7aec2b4a6c8f286f9097abfb011a6235.tar.bz2
First support for serialization and some bug fixes for DOM per data.src
Diffstat (limited to 'contrib/src/jsmn/jsmn.c')
-rw-r--r--contrib/src/jsmn/jsmn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/src/jsmn/jsmn.c b/contrib/src/jsmn/jsmn.c
index 1b918f5..3352214 100644
--- a/contrib/src/jsmn/jsmn.c
+++ b/contrib/src/jsmn/jsmn.c
@@ -191,7 +191,8 @@ jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, jsmntok_t *tokens,
}
}
/* Error if unmatched closing bracket */
- if (i == -1) return JSMN_ERROR_INVAL;
+ if (i == -1)
+ return JSMN_ERROR_INVAL;
for (; i >= 0; i--) {
token = &tokens[i];
if (token->start != -1 && token->end == -1) {