diff options
author | Patrick Griffis <tingping@tingping.se> | 2015-11-09 14:41:42 -0500 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2015-11-09 14:41:42 -0500 |
commit | 0bd15d435af6144db6cd3b92e77dd7c0a26d72c9 (patch) | |
tree | ffef07012127b9ae469f6e51dc9d6b324c82e082 /src/common | |
parent | c8539b93fe65977ee507b473e9dd62a1cc7bec53 (diff) |
Fix freeing string from g_get_user_name()
Fixes #1540
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/cfgfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index a49e17ae..f68892e4 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -718,7 +718,7 @@ load_default_config(void) gchar* roaming_path; #endif - username = g_get_user_name (); + username = g_strdup(g_get_user_name ()); if (!username) username = g_strdup ("root"); |