summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/manager.c b/audio/manager.c
index fca8d47a..65a27f5f 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -1126,7 +1126,10 @@ static void register_devices_stored(const char *adapter)
if (stat(filename, &s) == 0 && (s.st_mode & __S_IFREG)) {
textfile_foreach(filename, parse_stored_devices, &src);
+
addr = textfile_get(filename, "default");
+ if (!addr)
+ return;
str2ba(addr, &dst);
default_dev = find_device(&dst);