s3-talloc Change TALLOC_ZERO_P() to talloc_zero()
[nivanova/samba-autobuild/.git] / source3 / rpc_server / eventlog / srv_eventlog_nt.c
index b4c59ba51749cd830094654f8234cfd81e5d9bf2..16a0c97488190a22148fbb0575c0c42231e9a98a 100644 (file)
@@ -212,7 +212,7 @@ static NTSTATUS elog_open( struct pipes_struct * p, const char *logname, struct
        if ( !elog_validate_logname( logname ) )
                return NT_STATUS_OBJECT_PATH_INVALID;
 
        if ( !elog_validate_logname( logname ) )
                return NT_STATUS_OBJECT_PATH_INVALID;
 
-       if ( !(elog = TALLOC_ZERO_P( NULL, EVENTLOG_INFO )) )
+       if ( !(elog = talloc_zero( NULL, EVENTLOG_INFO )) )
                return NT_STATUS_NO_MEMORY;
        talloc_set_destructor(elog, eventlog_info_destructor);
 
                return NT_STATUS_NO_MEMORY;
        talloc_set_destructor(elog, eventlog_info_destructor);