summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-25 11:18:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:13 -0500
commitbdfc5db41d17c7eabba326f1e1e23790c72d9ba0 (patch)
treeaa70a35740b746f49e50077b092f728ff17f0f2f
parentdaa66ec96c2df1d59fa50c6e8869e4c1bcc2af88 (diff)
downloadsamba-bdfc5db41d17c7eabba326f1e1e23790c72d9ba0.tar.gz
samba-bdfc5db41d17c7eabba326f1e1e23790c72d9ba0.tar.bz2
samba-bdfc5db41d17c7eabba326f1e1e23790c72d9ba0.zip
r2625: use talloc_p, not talloc when possible (when allocating a structure in particular), as it gives us type checking.
(This used to be commit dabc7ddd9f940db414d1c3c7bf3cebcd108fbf6f)
-rw-r--r--source4/librpc/ndr/ndr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c
index f4db614c55..13c74121a6 100644
--- a/source4/librpc/ndr/ndr.c
+++ b/source4/librpc/ndr/ndr.c
@@ -47,7 +47,7 @@ struct ndr_pull *ndr_pull_init_blob(const DATA_BLOB *blob, TALLOC_CTX *mem_ctx)
{
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;