r3055: use talloc_zero_p()
authorAndrew Tridgell <tridge@samba.org>
Tue, 19 Oct 2004 06:32:26 +0000 (06:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:01:54 +0000 (13:01 -0500)
(This used to be commit 7bea9afeed219efa51aa8268af96f782f23f2400)

source4/ntvfs/simple/vfs_simple.c

index 7ebc040608bd20836d17688e80b5ce860e6e5451..f72d557b58d0136dcc6e31c369ed7d4b3a14e6be 100644 (file)
@@ -799,7 +799,7 @@ static NTSTATUS svfs_search_first(struct ntvfs_module_context *ntvfs,
                return NT_STATUS_NOT_SUPPORTED;
        }
 
-       search = talloc_zero(private, sizeof(struct search_state));
+       search = talloc_zero_p(private, struct search_state);
        if (!search) {
                return NT_STATUS_NO_MEMORY;
        }