Added a verification of the token type before converting to string

This commit is contained in:
Benoit Blanchon committed 2014-01-11 16:53:20 +01:00
1 parent 4713e90f12
commit 1475066edd
4 files changed
+23 -15

No files matched your search

+3 -2
View File
@@ -36,8 +36,9 @@ protected:
json = 0;
tokens = 0;
}
int getNestedTokenCount(int tokenIndex);
static int getNestedTokenCount(jsmntok_t* token);
char* getTokenString(jsmntok_t* token);
char* json;
jsmntok_t* tokens;