svn commit: samba r2625 - in branches/SAMBA_4_0/source/librpc/ndr: .
tridge at samba.org
tridge at samba.org
Sat Sep 25 11:18:50 GMT 2004
Author: tridge
Date: 2004-09-25 11:18:50 +0000 (Sat, 25 Sep 2004)
New Revision: 2625
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/librpc/ndr&rev=2625&nolog=1
Log:
use talloc_p, not talloc when possible (when allocating a structure in particular), as it gives us type checking.
Modified:
branches/SAMBA_4_0/source/librpc/ndr/ndr.c
Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/ndr/ndr.c 2004-09-25 11:18:04 UTC (rev 2624)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr.c 2004-09-25 11:18:50 UTC (rev 2625)
@@ -47,7 +47,7 @@
{
struct ndr_pull *ndr;
- ndr = talloc(mem_ctx, sizeof(*ndr));
+ ndr = talloc_p(mem_ctx, struct ndr_pull);
if (!ndr) return NULL;
ndr->flags = 0;
More information about the samba-cvs
mailing list