diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/locking/brlock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index 940dfbff8f..032aaa56b6 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -749,6 +749,11 @@ NTSTATUS brl_lock(struct messaging_context *msg_ctx, } #endif +#ifdef DEVELOPER + /* Quieten valgrind on test. */ + memset(&lock, '\0', sizeof(lock)); +#endif + lock.context.smbpid = smbpid; lock.context.pid = pid; lock.context.tid = br_lck->fsp->conn->cnum; |