summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-03-11 20:53:11 -0700
committerBrian Behlendorf <[email protected]>2009-03-11 20:53:11 -0700
commitc5345441b6aae08cb53aae37bc4b0a85d1a7a723 (patch)
tree162955b7295dac6809625c8e580cf7948e1a28d4 /module
parent3f6e148695c45af8695e8cc6b8a01f29a059aa84 (diff)
parent9915249546c3972325e9a849cefd9983d3a5ce18 (diff)
Merge commit 'refs/top-bases/gcc-branch' into gcc-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 a11f226a0..e507fd59f 100644
--- a/module/zfs/dsl_dataset.c
+++ b/module/zfs/dsl_dataset.c
@@ -2613,10 +2613,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);