]> git.ozlabs.org Git - ccan/commit
json_out: pass through OOM failures.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 23 May 2019 05:29:44 +0000 (14:59 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 23 May 2019 05:29:44 +0000 (14:59 +0930)
commit4fc7da62b4a9632ea19e1f485d6a384a3b24ed00
treef80597aaa27ff3b31caf29c78b1a30dd5132d9ec
parent2fd44331077429da94f8f7eb43513068257742f8
json_out: pass through OOM failures.

And fix escaping to work with addstr(), and assert in debug mode
if they don't specify quotes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/json_out/json_out.c
ccan/json_out/json_out.h