Skip to content

Commit 11846c7

Browse files
committed
fix(mdns): Fixed dead-code reported by coverity
Fixes CID 467738: Logically dead code in mdns.c, _copy_mdns_txt_items Introduced by probably by a merge confilict, as the fix was added in two separate PRs, merging d4da9cb first and 8a69050 later
1 parent 73c4830 commit 11846c7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

components/mdns/mdns.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5956,11 +5956,6 @@ static mdns_txt_item_t *_copy_mdns_txt_items(mdns_txt_linked_item_t *items, uint
59565956
for (mdns_txt_linked_item_t *tmp = items; tmp != NULL; tmp = tmp->next) {
59575957
ret_index++;
59585958
}
5959-
if (ret_index == 0) {
5960-
*txt_count = 0;
5961-
*txt_value_len = NULL;
5962-
return NULL;
5963-
}
59645959
*txt_count = ret_index;
59655960
if (ret_index == 0) { // handle empty TXT
59665961
*txt_value_len = NULL;

0 commit comments

Comments
 (0)