Fix freeing string from g_get_user_name()

Fixes #1540
This commit is contained in:
Patrick Griffis 2015-11-09 14:41:42 -05:00
parent c8539b93fe
commit 0bd15d435a
1 changed files with 1 additions and 1 deletions

View File

@ -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");