Changes to allow it to compile in FreeBSD and fix a few issues that were picked up by clang 10.

This commit is contained in:
Mike Brady
2021-06-22 13:49:11 +01:00
parent 6295b35338
commit e925e196c8
8 changed files with 68 additions and 16 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ void dacp_monitor_port_update_callback(char *dacp_id, uint16_t port) {
"dacp_monitor_port_update_callback with Remote ID \"%s\", target ID \"%s\" and port "
"number %d.",
dacp_id, dacp_server.dacp_id, port);
if ((dacp_id == NULL) || (dacp_server.dacp_id == NULL)) {
if ((dacp_id == NULL) || (dacp_server.dacp_id[0] == '\0')) {
warn("dacp_id or dacp_server.dacp_id NULL detected");
} else {
if (strcmp(dacp_id, dacp_server.dacp_id) == 0) {