Commit 824457af authored by Jan Včelák's avatar Jan Včelák 🚀

fix compatibility with old compilers

parent e872962e
......@@ -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
......
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