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 used to be commit dabc7ddd9f
)
This commit is contained in:
parent
daa66ec96c
commit
bdfc5db41d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user