>From 2cc2da1cc23f66119dd0eeb98df69ae84938ca4b Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 29 Oct 2015 11:11:00 +0000 Subject: [PATCH 5/5] 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 --- source3/locking/brlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index 05e7ee2..a355ffa 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -1019,7 +1019,7 @@ NTSTATUS brl_lock(struct messaging_context *msg_ctx, uint64_t *psmblctx) { NTSTATUS ret; - struct lock_struct lock; + struct lock_struct lock = {0}; #if !ZERO_ZERO if (start == 0 && size == 0) { -- 2.1.4