initialized ok variable in tests, parse should still return 1 if expected result is a failure

master
Serge A. Zaitsev 9 years ago
parent 8a5ee3d41b
commit 7fb89f1eb2

@ -70,7 +70,7 @@ static int tokeq(const char *s, jsmntok_t *tokens, int numtok, ...) {
static int parse(const char *s, int status, int numtok, ...) { static int parse(const char *s, int status, int numtok, ...) {
int r; int r;
int ok; int ok = 1;
va_list args; va_list args;
jsmn_parser p; jsmn_parser p;
jsmntok_t *t = malloc(numtok * sizeof(jsmntok_t)); jsmntok_t *t = malloc(numtok * sizeof(jsmntok_t));

Loading…
Cancel
Save