about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-17 22:22:35 +0100
committerJames Booth <boothj5@gmail.com>2014-06-17 22:22:35 +0100
commit4a485a64f9a09c1b19c59af3d03e2c2c2d62d398 (patch)
tree84f68392ac94f9d43b709b8d718922e8273358ce /src/config
parentfa0be4e50ed8be0cd1fc8bb9fa2e0c1885998770 (diff)
downloadprofani-tty-4a485a64f9a09c1b19c59af3d03e2c2c2d62d398.tar.gz
Free account_name preference on autoconnect
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 7acd5a0d..335915aa 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -171,7 +171,7 @@ prefs_get_string(preference_t pref)
     char *result = g_key_file_get_string(prefs, group, key, NULL);
 
     if (result == NULL) {
-        return def;
+        return strdup(def);
     } else {
         return result;
     }