From 0bd15d435af6144db6cd3b92e77dd7c0a26d72c9 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Mon, 9 Nov 2015 14:41:42 -0500 Subject: Fix freeing string from g_get_user_name() Fixes #1540 --- src/common/cfgfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit 1.4.1