diff --git a/src/libknot/dnssec/sign.c b/src/libknot/dnssec/sign.c index 2fe724d571ee3d82d1b578dae7445b6c870e14ac..bd4f06689b9ddaa8aad96d84248f3567d445d3b3 100644 --- a/src/libknot/dnssec/sign.c +++ b/src/libknot/dnssec/sign.c @@ -1082,7 +1082,7 @@ static int init_algorithm_data(const knot_key_params_t *params, assert(params); assert(data); - knot_dnssec_key_data_t result = { '\0' }; + knot_dnssec_key_data_t result = { 0 }; result.functions = get_implementation(params->algorithm); if (!result.functions) { diff --git a/src/utils/common/netio.c b/src/utils/common/netio.c index c4fab2e6cb56310dafa3619f666de4434963d1f0..58b1983eddbab560db78bdd8f33342f228aea482 100644 --- a/src/utils/common/netio.c +++ b/src/utils/common/netio.c @@ -154,7 +154,7 @@ static void get_addr_str(const struct sockaddr_storage *ss, if (*dst != NULL) { int ret = snprintf(*dst, buflen, "%s(%s)", addr_str, sock_name); if (ret <= 0 || ret >= buflen) { - *dst = '\0'; + **dst = '\0'; } } }