summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-04-18 09:28:36 +0000
committerJeremy Allison <jra@samba.org>2015-04-22 03:44:17 +0200
commitc8b4b119af60960a2edec4b57e7b9c420c6ab11e (patch)
tree22a3f44a7c6a9f9166eb6c5d0366598a2f8c9135 /source3/locking
parent74e684db80f1e80592f642d29669bbcbe8db17ba (diff)
downloadsamba-c8b4b119af60960a2edec4b57e7b9c420c6ab11e.tar.gz
smbd: Save a few lines of C :-)
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/share_mode_lock.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c
index 01e62417de0..79efb70ccc6 100644
--- a/source3/locking/share_mode_lock.c
+++ b/source3/locking/share_mode_lock.c
@@ -188,10 +188,7 @@ static void share_mode_memcache_store(struct share_mode_data *d)
static enum ndr_err_code get_blob_sequence_number(DATA_BLOB *blob,
uint64_t *pseq)
{
- struct ndr_pull ndr;
- memset(&ndr, '\0', sizeof(struct ndr_pull));
- ndr.data = blob->data;
- ndr.data_size = blob->length;
+ struct ndr_pull ndr = {.data = blob->data, .data_size = blob->length};
NDR_CHECK(ndr_pull_hyper(&ndr, NDR_SCALARS, pseq));
return NDR_ERR_SUCCESS;
}