summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2015-10-29 11:11:00 +0000
committerKarolin Seeger <kseeger@samba.org>2015-11-20 11:53:15 +0100
commit6a7f87b98d58040c39c4096bcc03096c135c9361 (patch)
treeb66b4f3ce031ba79031a6ccf7791453ecfceeee0 /source3/locking
parent7cbca2fbbe41e2e76d60d2523dc6cd0514f3765b (diff)
downloadsamba-6a7f87b98d58040c39c4096bcc03096c135c9361.tar.gz
remove many valgrind errors for base.lock test
mostly "Conditional jump or move depends on uninitialised value" & "Use of uninitialised value of size 8" errors, suspect this is related to compiler padding for the struct Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Nov 6 00:16:53 CET 2015 on sn-devel-104 (cherry picked from commit ce8068e70b11a3ce5634c56f43a035713c5ea2ed)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/brlock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index 1a468d060e2..30f4cee012a 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -1006,6 +1006,8 @@ NTSTATUS brl_lock(struct messaging_context *msg_ctx,
NTSTATUS ret;
struct lock_struct lock;
+ ZERO_STRUCT(lock);
+
#if !ZERO_ZERO
if (start == 0 && size == 0) {
DEBUG(0,("client sent 0/0 lock - please report this\n"));