rgb-cln/channeld
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
..
test bolt: Updated the BOLT specification to a07dc3df3b4611989e3359f28f96c574f7822850 2019-01-15 02:19:56 +00:00
Makefile channeld: don't assume we offered option_data_loss_protect. 2018-12-10 22:25:32 +00:00
channel_wire.csv channeld: get local peer features from lightningd. 2018-12-10 22:25:32 +00:00
channeld.c utils: make tal_arr_expand safer. 2019-01-15 12:01:38 +01:00
channeld_htlc.h channeld: include proper sha value in BADONION errors. 2019-01-08 19:20:28 +01:00
commit_tx.c bolt: Updated the BOLT specification to a07dc3df3b4611989e3359f28f96c574f7822850 2019-01-15 02:19:56 +00:00
commit_tx.h channeld: htlcmap is never NULL. 2018-10-23 16:55:35 +02:00
full_channel.c utils: make tal_arr_expand safer. 2019-01-15 12:01:38 +01:00
full_channel.h channeld: Keep track of the chainparams for the chain we are using 2018-09-14 21:18:11 +02:00
full_channel_error.h channeld: map htlc add/remove errors to names. 2018-02-19 02:56:51 +00:00