diff options
author | James Booth <boothj5@gmail.com> | 2014-06-17 22:22:35 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-06-17 22:22:35 +0100 |
commit | 4a485a64f9a09c1b19c59af3d03e2c2c2d62d398 (patch) | |
tree | 84f68392ac94f9d43b709b8d718922e8273358ce /src/config | |
parent | fa0be4e50ed8be0cd1fc8bb9fa2e0c1885998770 (diff) | |
download | profani-tty-4a485a64f9a09c1b19c59af3d03e2c2c2d62d398.tar.gz |
Free account_name preference on autoconnect
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 2 |
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; } |