Skip to content

Commit 75894e5

Browse files
committedJul 30, 2014
Fix uninitialized variable in run-01-jsonrpc.c.
Interesting that Travis spotted it but I didn't here. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 0f45401 commit 75894e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎test/run-01-jsonrpc.c

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ void test(const char *input, const char *expect, bool needs_more, int extra)
3636
jcon->len_read = strlen(input);
3737
jcon->buffer = tal_dup(jcon, char, input, strlen(input), 0);
3838
jcon->state = &state;
39+
jcon->num_conns = 2;
3940
list_head_init(&jcon->output);
4041

4142
plan = read_json(NULL, jcon);

0 commit comments

Comments
 (0)
Please sign in to comment.