diff options
Diffstat (limited to 'audio/device.c')
| -rw-r--r-- | audio/device.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/audio/device.c b/audio/device.c index 87ddf5b7..63ab7778 100644 --- a/audio/device.c +++ b/audio/device.c @@ -206,6 +206,8 @@ struct device *device_register(DBusConnection *conn,  		return NULL;  	adapter_path = find_adapter(conn, &src); +	if (!adapter_path) +		return NULL;  	dev = g_new0(struct device, 1); | 
