Commit 5213459f authored by Dominik Taborsky's avatar Dominik Taborsky

work around gcc bug warning about missing initialization braces

parent 2e8ad873
......@@ -377,7 +377,7 @@ static int ixfrin_finalize(struct answer_data *adata)
struct ixfr_proc *ixfr = adata->ext;
assert(ixfr->state == IXFR_DONE);
apply_ctx_t a_ctx = {0};
apply_ctx_t a_ctx = { { 0 } };
apply_init_ctx(&a_ctx);
zone_contents_t *new_contents;
......
......@@ -660,7 +660,7 @@ int event_dnssec(conf_t *conf, zone_t *zone)
bool zone_changed = !changeset_empty(&ch);
if (zone_changed) {
/* Apply change. */
apply_ctx_t a_ctx = {0};
apply_ctx_t a_ctx = { { 0 } };
apply_init_ctx(&a_ctx);
zone_contents_t *new_contents = NULL;
......
......@@ -126,7 +126,7 @@ int zone_load_journal(conf_t *conf, zone_t *zone, zone_contents_t *contents)
}
/* Apply changesets. */
apply_ctx_t a_ctx = {0};
apply_ctx_t a_ctx = { { 0 } };
apply_init_ctx(&a_ctx);
ret = apply_changesets_directly(&a_ctx, contents, &chgs);
......@@ -166,7 +166,7 @@ int zone_load_post(conf_t *conf, zone_t *zone, zone_contents_t *contents,
/* Apply DNSSEC changes. */
if (!changeset_empty(&change)) {
apply_ctx_t a_ctx = {0};
apply_ctx_t a_ctx = { { 0 } };
apply_init_ctx(&a_ctx);
ret = apply_changeset_directly(&a_ctx, contents, &change);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment