Skip to content

Commit

Permalink
fix(mdns): Remove dead store to arg variable shared
Browse files Browse the repository at this point in the history
Fixing: warning: Value stored to 'shared' is never read [clang-analyzer-deadcode.DeadStores]
  • Loading branch information
david-cermak committed Jan 13, 2025
1 parent c84ce1e commit cd2ef9e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/mdns/mdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cd2ef9e

Please sign in to comment.