smbd: Small optimization for break_to_none
authorVolker Lendecke <vl@samba.org>
Tue, 9 Apr 2019 14:34:24 +0000 (16:34 +0200)
committerChristof Schmitt <cs@samba.org>
Sun, 14 Apr 2019 04:01:30 +0000 (04:01 +0000)
commitb3d0c7e32c9b56dad9003f6bbb067da4aa0a6753
tree0118298ec40b5e57a1541c870f0a2d6cf3f3ef5b
parent98521ce51c64045ca651ed72440a3224648ce00e
smbd: Small optimization for break_to_none

We don't need to memzero the struct when we can struct-initialize it a
bit later, implicitly initializing the rest to zero.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/smbd/oplock.c