lib: talloc: Make it clear that talloc_get_size(NULL) returns 0.
authorJeremy Allison <jra@samba.org>
Wed, 11 Jan 2017 19:48:25 +0000 (11:48 -0800)
committerStefan Metzmacher <metze@samba.org>
Thu, 12 Jan 2017 18:23:25 +0000 (19:23 +0100)
commitd35ff9e9bdae79e5f5b2c9b5bf8cfe05199da804
treeeacaee60db68f891633cc37d2119a83a38e421fc
parent99ffef3de297395a62bab3279519f2fab990b42b
lib: talloc: Make it clear that talloc_get_size(NULL) returns 0.

This *isn't* a behavior change, as the previous code could potentially
return the size of null_context, which (currently) is defined as
a named talloc region of ZERO size, but this makes it very clear
what the ABI behavior should be.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jan 12 19:23:25 CET 2017 on sn-devel-144
lib/talloc/talloc.c