Skip to content

Commit

Permalink
Remove a redundant subexpression that was always true.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed Jun 9, 2022
1 parent e1228c4 commit ea4eafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dacp.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ void *dacp_monitor_thread_code(__attribute__((unused)) void *na) {
pthread_cleanup_pop(1);

if (result == 490) { // 490 means no port was specified
if (((char *)dacp_server.dacp_id != NULL) && (strlen(dacp_server.dacp_id) != 0)) {
if (strlen(dacp_server.dacp_id) != 0) {
// debug(1,"mdns_dacp_monitor_set_id");
mdns_dacp_monitor_set_id(dacp_server.dacp_id);
}
Expand Down

0 comments on commit ea4eafb

Please sign in to comment.