1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lib: Use struct initialization in imessaging_client_init()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Mar 28 09:13:43 UTC 2024 on atb-devel-224
This commit is contained in:
Volker Lendecke 2024-02-27 15:39:30 +01:00 committed by Andreas Schneider
parent 2d4aa59994
commit a3126ebfe5

View File

@ -823,14 +823,14 @@ struct imessaging_context *imessaging_client_init(TALLOC_CTX *mem_ctx,
struct loadparm_context *lp_ctx,
struct tevent_context *ev)
{
struct server_id id;
ZERO_STRUCT(id);
id.pid = getpid();
id.task_id = generate_random();
id.vnn = NONCLUSTER_VNN;
struct server_id id = {
.pid = getpid(),
.task_id = generate_random(),
.vnn = NONCLUSTER_VNN,
/* This is because we are not in the s3 serverid database */
id.unique_id = SERVERID_UNIQUE_ID_NOT_TO_VERIFY;
/* This is because we are not in the s3 serverid database */
.unique_id = SERVERID_UNIQUE_ID_NOT_TO_VERIFY,
};
return imessaging_init_discard_incoming(mem_ctx, lp_ctx, id, ev);
}