Skip to content
Snippets Groups Projects
Verified Commit 46cfc53d authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

lib/resolve: eliminate double initialization

It's just a few lines apart.  It's been generating lots of noise
in CI lint:clang-scan-build.
parent 1a8b5d73
Branches
Tags
1 merge request!702CI clang-scan-build fixes
......@@ -1031,7 +1031,6 @@ static int forward_trust_chain_check(struct kr_request *request, struct kr_query
return KR_STATE_PRODUCE;
}
const knot_dname_t *wanted_name = qry->sname;
const knot_dname_t *start_name = qry->sname;
if ((qry->flags.AWAIT_CUT) && !resume) {
qry->flags.AWAIT_CUT = false;
......@@ -1059,12 +1058,9 @@ static int forward_trust_chain_check(struct kr_request *request, struct kr_query
return KR_STATE_DONE;
}
bool nods = false;
bool ds_req = false;
bool ns_req = false;
bool ns_exist = true;
bool minimized = false;
int name_offset = 1;
const knot_dname_t *wanted_name;
bool nods, ds_req, ns_req, minimized, ns_exist;
do {
wanted_name = start_name;
nods = false;
......
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