summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-03-11 20:59:42 -0700
committerBrian Behlendorf <[email protected]>2009-03-11 20:59:42 -0700
commit60ac8152fe89d8f46f3d8421fde0a461761950c7 (patch)
tree3d6512536323b4afeed06d5be0a595a8a6c025c7 /module
parent8a3b1a5ff5720beac033c2724d44c8c0cd254efa (diff)
parentc5345441b6aae08cb53aae37bc4b0a85d1a7a723 (diff)
Merge branch 'gcc-branch' into refs/top-bases/zfs-branch
Diffstat (limited to 'module')
-rw-r--r--module/zfs/dsl_dataset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/dsl_dataset.c b/module/zfs/dsl_dataset.c
index cc7e08d9e..a7a7a7f22 100644
--- a/module/zfs/dsl_dataset.c
+++ b/module/zfs/dsl_dataset.c
@@ -2614,10 +2614,11 @@ dsl_dataset_promote(const char *name)
dsl_dir_t *dd;
dsl_pool_t *dp;
dmu_object_info_t doi;
- struct promotearg pa = { 0 };
+ struct promotearg pa;
struct promotenode *snap;
int err;
+ bzero(&pa, sizeof(struct promotearg));
err = dsl_dataset_hold(name, FTAG, &ds);
if (err)
return (err);