Skip to content
Snippets Groups Projects
Commit 824457af authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

fix compatibility with old compilers

parent e872962e
No related branches found
No related tags found
2 merge requests!330Knsupdate pubkey processing fix,!315DNSSEC: per-algorithm Single-Type Signing
......@@ -137,8 +137,9 @@ static int prepare_and_check_keys(const knot_dname_t *zone_name,
assert(zone_name);
assert(keys);
static const size_t max_algorithms = KNOT_DNSSEC_ALG_ECDSAP384SHA384 + 1;
algorithm_usage_t usage[max_algorithms] = {{0}};
const size_t max_algorithms = KNOT_DNSSEC_ALG_ECDSAP384SHA384 + 1;
algorithm_usage_t usage[max_algorithms];
memset(usage, 0, max_algorithms * sizeof(algorithm_usage_t));
// count available keys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment