core-lightning/lightningd/test
Rusty Russell 26dda57cc0 utils: make tal_arr_expand safer.
Christian and I both unwittingly used it in form:

	*tal_arr_expand(&x) = tal(x, ...)

Since '=' isn't a sequence point, the compiler can (and does!) cache
the value of x, handing it to tal *after* tal_arr_expand() moves it
due to tal_resize().

The new version is somewhat less convenient to use, but doesn't have
this problem, since the assignment is always evaluated after the
resize.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-01-15 12:01:38 +01:00
..
Makefile Move json and param core functionality into common, for plugins. 2018-12-10 00:00:50 +00:00
run-find_my_abspath.c Move json and param core functionality into common, for plugins. 2018-12-10 00:00:50 +00:00
run-invoice-select-inchan.c utils: make tal_arr_expand safer. 2019-01-15 12:01:38 +01:00
run-jsonrpc.c param: make json_tok_ handlers all return command_result, rename to param_ 2018-12-20 03:22:32 +00:00