test/run-param: fix malformed JSON.

jsmn seems happy with this, but it's Not Right!

Reported-by: @niftynei
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-12-17 14:22:10 +10:30
parent add822a072
commit 7b7a1b7040

View file

@ -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),