summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-04-11 17:23:48 -0700
committerGerald W. Carter <jerry@samba.org>2008-04-23 13:32:30 -0500
commit6369f12301c192502891848d3c6a87d75c3b2eb3 (patch)
tree5be83d91e46a9ee797fb57c5069ff7baaf6f9b1a /source
parentd47a4dacd1cbb4fa04179d5bf51b216115b93f54 (diff)
downloadsamba-6369f12301c192502891848d3c6a87d75c3b2eb3.tar.gz
samba-6369f12301c192502891848d3c6a87d75c3b2eb3.tar.xz
samba-6369f12301c192502891848d3c6a87d75c3b2eb3.zip
Quieten valgrind message on make valgrindtest. This doesn't
seem to be valid (vl - feel free to confirm). Jeremy. (cherry picked from commit 43b0254d93540eeaddaa32d76dd9271f4dc2ebff)
Diffstat (limited to 'source')
-rw-r--r--source/locking/brlock.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/locking/brlock.c b/source/locking/brlock.c
index 940dfbff8fe..032aaa56b61 100644
--- a/source/locking/brlock.c
+++ b/source/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;