Commit 17e1587c authored by Daniel Salzman's avatar Daniel Salzman

keymgr: mute warning that keytag may be used uninitialized

parent 22b69353
......@@ -630,7 +630,7 @@ static bool is_hex(const char *string)
int keymgr_get_key(kdnssec_ctx_t *ctx, const char *key_spec, knot_kasp_key_t **key)
{
uint16_t keytag;
uint16_t keytag = 0;
bool has_keytag = (str_to_u16(key_spec, &keytag) == KNOT_EOK);
long spec_len = strlen(key_spec);
if (!has_keytag && !is_hex(key_spec)) {
......
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