]> git.ozlabs.org Git - ccan/commit
tal: make tal_len/tal_count(NULL) return 0.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 24 Jan 2017 06:22:00 +0000 (16:52 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 24 Jan 2017 06:22:00 +0000 (16:52 +1030)
commit9b3f4ef6eec6a5981dcaa62f45da49b8f4f95388
treed6426f7cb804529214ba9894ef2625d91171be70
parentb137aba87d2c6dc791539b71f1b3ca8c371b8496
tal: make tal_len/tal_count(NULL) return 0.

Previously it crashed, but if you're always dealing with tal arrays,
this is painful.

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