diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index 08afb967..f1e30b8b 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -320,7 +320,7 @@ get_xdir (void) if (portable_mode () || !get_reg_str ("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "AppData", out, sizeof (out))) { - xdir = ".\\config"; + xdir = g_strdup (".\\config"); } else {