initialized capa to 0 in to_dn_capa()

This commit is contained in:
2020-02-24 17:14:21 +00:00
parent 8264142dbe
commit 9ef09941c3
3 changed files with 4 additions and 5 deletions

View File

@ -91,7 +91,6 @@ static mio_dns_msg_t* build_dns_msg (mio_svc_dnc_t* dnc, mio_dns_bhdr_t* bdns, m
msg = mio_dns_make_msg(dnc->mio, bdns, qr, qr_count, rr, rr_count, edns, MIO_SIZEOF(*msgxtn) + xtnsize);
if (msg)
{
if (bdns->id < 0)
{
mio_dns_pkt_t* pkt = mio_dns_msg_to_pkt(msg);

View File

@ -69,7 +69,7 @@ static mio_oow_t to_dn (const mio_bch_t* str, mio_uint8_t* buf)
static mio_oow_t to_dn_capa (const mio_bch_t* str)
{
mio_oow_t capa;
mio_oow_t capa = 0;
/*MIO_ASSERT (MIO_SIZEOF(mio_uint8_t) == MIO_SIZEOF(mio_bch_t));*/