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)
commit438a54b8b4df147405bba0b3b55a895d81a27b8a
tree4b929a469a56952371da37ce5a82afe024ebaebd
parent8a5c9c28410ae0320356fe1686ad0ee7d1ec0e7b
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
(This used to be commit 59757c7f9d0e08e3acacfb3116f6205057d5b119)
source4/lib/talloc.c
source4/torture/local/talloc.c
talloc_guide.txt