From: Volker Lendecke Date: Thu, 2 Jul 2026 11:40:04 +0000 (+0200) Subject: lib: Streamline a struct assignment X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5a57b5345f3866236f71416fa0653d9d2f72bce;p=thirdparty%2Fsamba.git lib: Streamline a struct assignment No need to do the struct assignment and then modify the struct in a separate step. Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/lib/util/asn1.c b/lib/util/asn1.c index ff9cebc06e5..277c6d7ea6b 100644 --- a/lib/util/asn1.c +++ b/lib/util/asn1.c @@ -1167,8 +1167,10 @@ bool asn1_extract_blob(struct asn1_data *asn1, TALLOC_CTX *mem_ctx, return false; } - *pblob = (DATA_BLOB) { .length = blob.length }; - pblob->data = talloc_move(mem_ctx, &blob.data); + *pblob = (DATA_BLOB){ + .length = blob.length, + .data = talloc_move(mem_ctx, &blob.data), + }; /* * Stop access from here on