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 c8bcbfe..014c561 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -86,6 +86,7 @@ void BarSettingsDestroy (BarSettings_t *settings) {
free (settings->proxy);
free (settings->username);
free (settings->password);
+ free (settings->passwordCmd);
free (settings->autostartStation);
free (settings->eventCmd);
free (settings->loveIcon);
@@ -189,6 +190,8 @@ void BarSettingsRead (BarSettings_t *settings) {
settings->username = strdup (val);
} else if (streq ("password", key)) {
settings->password = strdup (val);
+ } else if (streq ("password_command", key)) {
+ settings->passwordCmd = strdup (val);
} else if (streq ("rpc_host", key)) {
free (settings->rpcHost);
settings->rpcHost = strdup (val);