]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:dsdb: Use C99 initializer in util
authorAndreas Schneider <asn@samba.org>
Mon, 14 Jan 2019 12:13:09 +0000 (13:13 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:24 +0000 (10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/dsdb/common/util.c

index dd9a5dcadf56c745e4075082c8223ba396bf04f2..d173a75ebb7d0fbe0a4a195e6d3e5c5ff1d3595e 100644 (file)
@@ -2525,12 +2525,18 @@ NTSTATUS samdb_set_password_sid(struct ldb_context *ldb, TALLOC_CTX *mem_ctx,
                uint32_t trust_direction;
                uint32_t i;
                const struct ldb_val *old_val = NULL;
-               struct trustAuthInOutBlob old_blob = {};
+               struct trustAuthInOutBlob old_blob = {
+                       .count = 0,
+               };
                uint32_t old_version = 0;
                struct AuthenticationInformation *old_version_a = NULL;
                uint32_t _new_version = 0;
-               struct trustAuthInOutBlob new_blob = {};
-               struct ldb_val new_val = {};
+               struct trustAuthInOutBlob new_blob = {
+                       .count = 0,
+               };
+               struct ldb_val new_val = {
+                       .length = 0,
+               };
                struct timeval tv = timeval_current();
                NTTIME now = timeval_to_nttime(&tv);
                enum ndr_err_code ndr_err;