From 7fb89f1eb23a2a62d54fd5c3b9c44243828ecfd4 Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Sat, 31 Oct 2015 18:37:25 +0200 Subject: [PATCH] initialized ok variable in tests, parse should still return 1 if expected result is a failure --- test/testutil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testutil.h b/test/testutil.h index dea8846..9a1eb2d 100644 --- a/test/testutil.h +++ b/test/testutil.h @@ -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, ...) { int r; - int ok; + int ok = 1; va_list args; jsmn_parser p; jsmntok_t *t = malloc(numtok * sizeof(jsmntok_t));