svn commit: samba r10729 - in trunk/source/lib: .

jra at samba.org jra at samba.org
Wed Oct 5 14:16:08 GMT 2005


Author: jra
Date: 2005-10-05 14:16:07 +0000 (Wed, 05 Oct 2005)
New Revision: 10729

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10729

Log:
Janitor for tridge on the "fix to talloc_parent() from Michael O'Brien".
Jeremy.

Modified:
   trunk/source/lib/talloc.c


Changeset:
Modified: trunk/source/lib/talloc.c
===================================================================
--- trunk/source/lib/talloc.c	2005-10-05 12:16:58 UTC (rev 10728)
+++ trunk/source/lib/talloc.c	2005-10-05 14:16:07 UTC (rev 10729)
@@ -158,7 +158,7 @@
 void *talloc_parent(const void *ptr)
 {
 	struct talloc_chunk *tc = talloc_parent_chunk(ptr);
-	return (void *)(tc+1);
+	return tc ? (void *)(tc+1) : NULL;
 }
 
 /* 



More information about the samba-cvs mailing list