r3553: Allow talloc_reference to take a NULL pointer for the "ptr" argument.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 5 Nov 2004 12:20:27 +0000 (12:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:31 +0000 (13:05 -0500)
commit59757c7f9d0e08e3acacfb3116f6205057d5b119
tree03dfbc68a6a560eef254fcbf66d25211cc614ed8
parent630af28a0f812b5bafce3ffeb72ebd069b66adac
r3553: Allow talloc_reference to take a NULL pointer for the "ptr" argument.

This allows potentially NULL pointers to be referenced, without an if ()
for every use.  (previously, it would segfault).

Update doco, and allow talloc_unlink to match.

Andrew Bartlett
source/lib/talloc.c
source/torture/local/talloc.c
talloc_guide.txt