summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2015-11-09 14:41:42 -0500
committerPatrick Griffis <tingping@tingping.se>2015-11-09 14:41:42 -0500
commit0bd15d435af6144db6cd3b92e77dd7c0a26d72c9 (patch)
treeffef07012127b9ae469f6e51dc9d6b324c82e082 /src/common
parentc8539b93fe65977ee507b473e9dd62a1cc7bec53 (diff)
Fix freeing string from g_get_user_name()
Fixes #1540
Diffstat (limited to 'src/common')
-rw-r--r--src/common/cfgfiles.c2
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");