git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2bb3b0
)
smbd: Use ZERO_STRUCT instead of memset
author
Volker Lendecke
<vl@samba.org>
Tue, 10 Sep 2013 12:04:42 +0000
(12:04 +0000)
committer
Volker Lendecke
<vl@samba.org>
Wed, 11 Sep 2013 06:27:11 +0000
(08:27 +0200)
source3/locking/brlock.c
patch
|
blob
|
history
diff --git
a/source3/locking/brlock.c
b/source3/locking/brlock.c
index ae8a126ce462e80fc7e14ba094a5dd0b69335f3b..2e08ce64ef868aff2bd01ca02adc2ead43889599 100644
(file)
--- 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;