summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-10 12:04:42 +0000
committerVolker Lendecke <vl@samba.org>2013-09-11 08:27:11 +0200
commit635c35dc8d0d7e9ee7f0a850552564896b7342d9 (patch)
tree29ef81f465750c09b6910a759695597c947447df
parente2bb3b0c4a64ebfd7cd5143f50518fc534d020a2 (diff)
downloadsamba-635c35dc8d0d7e9ee7f0a850552564896b7342d9.tar.gz
samba-635c35dc8d0d7e9ee7f0a850552564896b7342d9.tar.bz2
samba-635c35dc8d0d7e9ee7f0a850552564896b7342d9.zip
smbd: Use ZERO_STRUCT instead of memset
-rw-r--r--source3/locking/brlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index ae8a126ce4..2e08ce64ef 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -933,7 +933,7 @@ NTSTATUS brl_lock(struct messaging_context *msg_ctx,
#ifdef DEVELOPER
/* Quieten valgrind on test. */
- memset(&lock, '\0', sizeof(lock));
+ ZERO_STRUCT(lock);
#endif
lock.context.smblctx = smblctx;