very minor cleanup

This commit is contained in:
Daniel Micay 2012-09-07 16:41:20 -04:00
parent e027b88f30
commit 4b164c1e82
1 changed files with 1 additions and 2 deletions

View File

@ -632,8 +632,7 @@ static void load_config(GtkWindow *window, VteTerminal *vte, config_info *info,
const char **term, char **geometry) { const char **term, char **geometry) {
const char * const filename = "termite.cfg"; const char * const filename = "termite.cfg";
const char *dir = g_get_user_config_dir(); char *path = g_build_filename(g_get_user_config_dir(), filename, nullptr);
char *path = g_build_filename(dir, filename, NULL);
GKeyFile *config = g_key_file_new(); GKeyFile *config = g_key_file_new();
if ((g_key_file_load_from_file(config, path, G_KEY_FILE_NONE, NULL) || if ((g_key_file_load_from_file(config, path, G_KEY_FILE_NONE, NULL) ||