From 2598c0012dc33496539ce893a0af601c66cbb7e2 Mon Sep 17 00:00:00 2001
From: Brian Behlendorf <behlendorf1@llnl.gov>
Date: Thu, 26 Aug 2010 09:52:41 -0700
Subject: Fix gcc missing braces warnings

Resolve compiler warnings concerning missing braces.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
---
 module/zfs/dsl_scan.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'module/zfs/dsl_scan.c')

diff --git a/module/zfs/dsl_scan.c b/module/zfs/dsl_scan.c
index 7e6be15a0..e18dadf44 100644
--- a/module/zfs/dsl_scan.c
+++ b/module/zfs/dsl_scan.c
@@ -1251,10 +1251,12 @@ static void
 dsl_scan_ddt(dsl_scan_t *scn, dmu_tx_t *tx)
 {
 	ddt_bookmark_t *ddb = &scn->scn_phys.scn_ddt_bookmark;
-	ddt_entry_t dde = { 0 };
+	ddt_entry_t dde;
 	int error;
 	uint64_t n = 0;
 
+	bzero(&dde, sizeof (ddt_entry_t));
+
 	while ((error = ddt_walk(scn->scn_dp->dp_spa, ddb, &dde)) == 0) {
 		ddt_t *ddt;
 
-- 
cgit v1.2.3