mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
This commit is contained in:
@ -1862,7 +1862,7 @@ NTSTATUS smbldap_init(TALLOC_CTX *mem_ctx, struct event_context *event_ctx,
|
||||
const char *location,
|
||||
struct smbldap_state **smbldap_state)
|
||||
{
|
||||
*smbldap_state = TALLOC_ZERO_P(mem_ctx, struct smbldap_state);
|
||||
*smbldap_state = talloc_zero(mem_ctx, struct smbldap_state);
|
||||
if (!*smbldap_state) {
|
||||
DEBUG(0, ("talloc() failed for ldapsam private_data!\n"));
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
|
Reference in New Issue
Block a user