summaryrefslogtreecommitdiff
path: root/src/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.c')
-rw-r--r--src/settings.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c
index 63d5937..bc471f0 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -82,6 +82,7 @@ void BarSettingsDestroy (BarSettings_t *settings) {
free (settings->password);
free (settings->lastfmUser);
free (settings->lastfmPassword);
+ free (settings->autostartStation);
memset (settings, 0, sizeof (*settings));
}
@@ -229,6 +230,8 @@ void BarSettingsRead (BarSettings_t *settings) {
} else if (strcmp (val, "mp3") == 0) {
settings->audioFormat = PIANO_AF_MP3;
}
+ } else if (strcmp ("autostart_station", key) == 0) {
+ settings->autostartStation = strdup (val);
}
}