1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

r2625: use talloc_p, not talloc when possible (when allocating a structure in particular), as it gives us type checking.

This commit is contained in:
Andrew Tridgell 2004-09-25 11:18:50 +00:00 committed by Gerald (Jerry) Carter
parent e95e5c591f
commit dabc7ddd9f

View File

@ -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;