librpc:ndr: Initialize inblob
authorAndreas Schneider <asn@samba.org>
Mon, 12 Nov 2018 09:13:51 +0000 (10:13 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 14 Nov 2018 04:07:15 +0000 (05:07 +0100)
Found by cppcheck.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13680

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/ndr/ndr_backupkey.c

index 827bc69423061bcc3911fb676e46e7c4500cb5d1..adb6e3932874a5ee81c92656c58b32c3912ec999 100644 (file)
@@ -58,7 +58,9 @@ _PUBLIC_ void ndr_print_bkrp_BackupKey(struct ndr_print *ndr, const char *name,
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
        }
        if (flags & NDR_IN) {
-               union bkrp_data_in_blob inblob;
+               union bkrp_data_in_blob inblob = {
+                       .empty._empty_ = '\0',
+               };
                DATA_BLOB blob;
                uint32_t level;
                enum ndr_err_code ndr_err;