From: Volker Lendecke Date: Wed, 24 Dec 2025 09:52:18 +0000 (+0100) Subject: libcli: Initialize a variable at declaration time X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e5cfdde7de61bc19345bb6a70edbca1b582bced;p=thirdparty%2Fsamba.git libcli: Initialize a variable at declaration time Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/libcli/smb/smb2cli_create.c b/libcli/smb/smb2cli_create.c index e740365412e..bfee1b49a16 100644 --- a/libcli/smb/smb2cli_create.c +++ b/libcli/smb/smb2cli_create.c @@ -62,7 +62,7 @@ struct tevent_req *smb2cli_create_send( struct tevent_req *req, *subreq; struct smb2cli_create_state *state; uint8_t *fixed; - DATA_BLOB blob; + DATA_BLOB blob = {}; NTSTATUS status; size_t blobs_offset; uint8_t *dyn; @@ -111,8 +111,6 @@ struct tevent_req *smb2cli_create_send( SSVAL(fixed, 44, SMB2_HDR_BODY + 56); SSVAL(fixed, 46, state->name_utf16_len); - blob = data_blob_null; - if (blobs != NULL) { status = smb2_create_blob_push(state, &blob, *blobs); if (tevent_req_nterror(req, status)) {