mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 16:15:57 -05:00
Merge pull request #1479 from hgy59/fix_mdns_avahi_init
mdns_init: improve error handling (avoid null reference access)
This commit is contained in:
commit
5779bc56b8
@ -1044,7 +1044,7 @@ mdns_init(void)
|
|||||||
client_callback, NULL, &error);
|
client_callback, NULL, &error);
|
||||||
if (!mdns_client)
|
if (!mdns_client)
|
||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_MDNS, "mdns_init: Could not create Avahi client: %s\n", MDNSERR);
|
DPRINTF(E_WARN, L_MDNS, "mdns_init: Could not create Avahi client: %s\n", avahi_strerror(error));
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user