From d87c22d2cd38bb4065d2b33cb683792c2dc9eed3 Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Sat, 17 Oct 2015 10:42:30 +0200 Subject: [PATCH] removed mixed declarations and code, fixes #45 --- jsmn_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jsmn_test.c b/jsmn_test.c index 1510cf5..3345790 100644 --- a/jsmn_test.c +++ b/jsmn_test.c @@ -207,13 +207,13 @@ int test_partial_string(void) { check(p.toknext == 1); jsmn_init(&p); - char js_slash[9] = "\"x\": \"va\\"; - r = jsmn_parse(&p, js_slash, sizeof(js_slash), tok, 10); + js = "\"x\": \"va\\"; + r = jsmn_parse(&p, js, 9, tok, 10); check(r == JSMN_ERROR_PART); jsmn_init(&p); - char js_unicode[10] = "\"x\": \"va\\u"; - r = jsmn_parse(&p, js_unicode, sizeof(js_unicode), tok, 10); + js = "\"x\": \"va\\u"; + r = jsmn_parse(&p, js, 10, tok, 10); check(r == JSMN_ERROR_PART); js = "\"x\": \"valu";