From 7b7a1b70403009ca726645783bf2144fa275f4d8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 17 Dec 2018 14:22:10 +1030 Subject: [PATCH] test/run-param: fix malformed JSON. jsmn seems happy with this, but it's Not Right! Reported-by: @niftynei Signed-off-by: Rusty Russell --- common/test/run-param.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/test/run-param.c b/common/test/run-param.c index 2909329c1..340e9c16e 100644 --- a/common/test/run-param.c +++ b/common/test/run-param.c @@ -458,7 +458,7 @@ static void advanced(void) assert(msat_opt2 == NULL); } { - struct json *j = json_parse(cmd, "[ 3 'foo' ]"); + struct json *j = json_parse(cmd, "[ 3, 'foo' ]"); struct json_escaped *label, *foo; assert(param(cmd, j->buffer, j->toks, p_req("label", param_label, &label),