summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-01-11 11:48:25 -0800
committerStefan Metzmacher <metze@samba.org>2017-01-12 19:23:25 +0100
commitd35ff9e9bdae79e5f5b2c9b5bf8cfe05199da804 (patch)
treeeacaee60db68f891633cc37d2119a83a38e421fc /lib
parent99ffef3de297395a62bab3279519f2fab990b42b (diff)
downloadsamba-d35ff9e9bdae79e5f5b2c9b5bf8cfe05199da804.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/talloc/talloc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c
index 279021c137a..8bdd4b6653a 100644
--- a/lib/talloc/talloc.c
+++ b/lib/talloc/talloc.c
@@ -2739,9 +2739,6 @@ _PUBLIC_ size_t talloc_get_size(const void *context)
struct talloc_chunk *tc;
if (context == NULL) {
- context = null_context;
- }
- if (context == NULL) {
return 0;
}