git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2237bc6
)
r10730: Janitor for tridge on the "fix to talloc_parent() from Michael O'Brien".
author
Jeremy Allison
<jra@samba.org>
Wed, 5 Oct 2005 14:16:09 +0000
(14:16 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:04:51 +0000
(11:04 -0500)
Jeremy.
(This used to be commit
2f3750d95b75b186771cab13b842c91bd7926df1
)
source3/lib/talloc.c
patch
|
blob
|
history
diff --git
a/source3/lib/talloc.c
b/source3/lib/talloc.c
index 98cba8597e88baf003a59205070829602e1ac096..2df4588f4256218649e95753ba4c4f08ec42b2e8 100644
(file)
--- a/
source3/lib/talloc.c
+++ b/
source3/lib/talloc.c
@@
-158,7
+158,7
@@
static struct talloc_chunk *talloc_parent_chunk(const void *ptr)
void *talloc_parent(const void *ptr)
{
struct talloc_chunk *tc = talloc_parent_chunk(ptr);
- return
(void *)(tc+1)
;
+ return
tc ? (void *)(tc+1) : NULL
;
}
/*