1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

rpc_client: Replace ZERO_STRUCTP with struct assignment

Give the compiler simpler hints

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2021-07-29 10:13:37 +02:00 committed by Jeremy Allison
parent dbb1047e47
commit f6c9e2800e

View File

@ -95,10 +95,9 @@ static void rpc_tstream_next_vector_init(
struct rpc_tstream_next_vector_state *s,
uint8_t *buf, size_t len)
{
ZERO_STRUCTP(s);
s->buf = buf;
s->len = MIN(len, UINT16_MAX);
*s = (struct rpc_tstream_next_vector_state) {
.buf = buf, .len = MIN(len, UINT16_MAX),
};
}
static int rpc_tstream_next_vector(struct tstream_context *stream,