mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 07:06:23 +01:00
fix edge case - handle error in device owner request
This commit is contained in:
parent
7f1a4f3658
commit
40d88d2218
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ static DBusHandlerResult filter_handler(
|
|||
const char *un;
|
||||
|
||||
if ((un = dbus_bus_get_unique_name(c)) && rd_dbus_get_name_owner(c, d->service_name, &name_owner, &error) == 0)
|
||||
if (strcmp(name_owner, un) == 0)
|
||||
if (name_owner && strcmp(name_owner, un) == 0)
|
||||
goto invalid; /* Name still owned by us */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue