summaryrefslogtreecommitdiffstats
path: root/audio/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/manager.c')
-rw-r--r--audio/manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/manager.c b/audio/manager.c
index 54b95538..9c57d17d 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -838,7 +838,8 @@ static DBusHandlerResult am_remove_device(DBusConnection *conn,
DBUS_TYPE_STRING, &param,
DBUS_TYPE_INVALID);
- device_store(default_dev, TRUE);
+ if (default_dev)
+ device_store(default_dev, TRUE);
}
dbus_connection_emit_signal(conn, AUDIO_MANAGER_PATH,