fix(mdns): Remove dead store to arg variable shared

Fixing: warning: Value stored to 'shared' is never read [clang-analyzer-deadcode.DeadStores]
This commit is contained in:
David Cermak
2025-01-13 14:57:33 +01:00
parent 99b54ac384
commit e838bf03f4

View File

@ -1812,7 +1812,6 @@ static bool _mdns_create_answer_from_service(mdns_tx_packet_t *packet, mdns_serv
return false;
}
} else if (question->type == MDNS_TYPE_SDPTR) {
shared = true;
if (!_mdns_alloc_answer(&packet->answers, MDNS_TYPE_SDPTR, service, NULL, false, false)) {
return false;
}