summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-29 12:19:12 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-29 12:19:12 +0000
commit3eb397c28e2ab0999a069dc9c0404d9cfaca9ce2 (patch)
tree58343e5d2d9451c6fc414315936e6eab3d704451
parentc13f5169711913b9b6d3ee40740480fe234491cd (diff)
Check for NULL before calling device_store
-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,