diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 22849240b9..a1c291ccd3 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -2538,7 +2538,7 @@ ztest_dmu_commit_callbacks(ztest_args_t *za) ztest_cb_list_t *zcl = &ztest_shared->zs_cb_list; ztest_cb_data_t *cb_data[3], *tmp_cb; uint64_t old_txg, txg; - int i, error; + int i, error = 0; tx = dmu_tx_create(os);