]> git.ozlabs.org Git - ccan/commitdiff
tal: allow notifiers on NULL.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 23 Aug 2018 02:41:13 +0000 (12:11 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 23 Aug 2018 02:41:13 +0000 (12:11 +0930)
A destructor on NULL doesn't make sense, but notifiers (eg. new children)
do.  We fix up a mistake in run-notifier (comparing ctx with itself) and
loose typing in tal.c's tal_add_notifier_ too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found