tal: make tal_free() return NULL
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Nov 2012 23:38:50 +0000 (10:08 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Nov 2012 23:38:50 +0000 (10:08 +1030)
commit60b4ad5bf9ef295f89e834f3667e2aa8914b741a
tree65ff416909297491a6dda25e595b5eab381f5f32
parentbb480e553f9d204b85a2e42de0be42c7b80eebda
tal: make tal_free() return NULL

This makes it convenient to do:

ptr = tal_free(ptr);

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