summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-11-12 10:13:51 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-11-14 05:07:15 +0100
commit9c37ed26f0a814f77c934ae190f48d0a1e673f83 (patch)
tree8316f9fa54444c7d84963d32585a0ac3497d6dc4 /librpc
parent56ac8944eb58f234422b4bd4dd9a64b8e51e874d (diff)
downloadsamba-9c37ed26f0a814f77c934ae190f48d0a1e673f83.tar.gz
librpc:ndr: Initialize inblob
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>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/ndr/ndr_backupkey.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/librpc/ndr/ndr_backupkey.c b/librpc/ndr/ndr_backupkey.c
index 827bc694230..adb6e393287 100644
--- a/librpc/ndr/ndr_backupkey.c
+++ b/librpc/ndr/ndr_backupkey.c
@@ -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;