summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSerge A. Zaitsev <zaitsev.serge@gmail.com>2015-10-31 18:37:25 +0200
committerSerge A. Zaitsev <zaitsev.serge@gmail.com>2015-10-31 18:37:25 +0200
commit7fb89f1eb23a2a62d54fd5c3b9c44243828ecfd4 (patch)
tree5a8d2dc882feda5d94d40085e2a13af9396b1656 /test
parent8a5ee3d41b17a600effe0c994beac093ca836118 (diff)
initialized ok variable in tests, parse should still return 1 if expected result is a failure
Diffstat (limited to 'test')
-rw-r--r--test/testutil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testutil.h b/test/testutil.h
index dea8846fd..9a1eb2d65 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));