smbd: Use ZERO_STRUCT instead of memset
authorVolker Lendecke <vl@samba.org>
Tue, 10 Sep 2013 12:04:42 +0000 (12:04 +0000)
committerVolker Lendecke <vl@samba.org>
Wed, 11 Sep 2013 06:27:11 +0000 (08:27 +0200)
source3/locking/brlock.c

index ae8a126ce462e80fc7e14ba094a5dd0b69335f3b..2e08ce64ef868aff2bd01ca02adc2ead43889599 100644 (file)
@@ -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;