shadow_copy2: revert expensive and unnecessary zero-initialization
commitcc773c5cb00f958337b58f7d2c1d3c8b37a264f7
authorMichael Adam <obnox@samba.org>
Wed, 11 Dec 2013 08:34:47 +0000 (11 09:34 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Jan 2014 09:15:55 +0000 (13 10:15 +0100)
tree42c55344815f35d6bf5dcb9b2862e1ecbebd3d97
parente8bc1acee2168614f9b62dd44a6247ffe88125e9
shadow_copy2: revert expensive and unnecessary zero-initialization

I was being overly cautious. This is initialization is not
necessary, since further down in the for-loop, the memory
always gets fully initialized because the insert string is
inserted at various slash positions.

So this talloc_zero_array can be skipped: this an expensive
thing to do in virtually every VFS call.

This essentially reverts commit 249e9b4a34d8959bd94735c1921ecfc24d6a2705.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 71318d7d685f8e1e112076f84ef2d788acb83547)
source3/modules/vfs_shadow_copy2.c