Commit aca66c5e authored by Jan Kadlec's avatar Jan Kadlec

new_node: Reused code for RRSet init.

parent 47c47ef7
......@@ -133,11 +133,8 @@ static void loader_process(const zs_scanner_t *scanner)
}
knot_dname_to_lower(owner);
knot_rrset_t rr = {.owner = owner,
.type = scanner->r_type,
.rclass = scanner->r_class,
.additional = NULL};
knot_rrs_init(&rr.rrs);
knot_rrset_t rr;
knot_rrset_init(&rr, owner, scanner->r_type, scanner->r_class);
int ret = add_rdata_to_rr(&rr, scanner);
if (ret != KNOT_EOK) {
char *rr_name = knot_dname_to_str(rr.owner);
......
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