aboutsummaryrefslogtreecommitdiffstats
path: root/tests/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-25 00:50:07 +0000
committerJames Booth <boothj5@gmail.com>2014-01-25 00:50:07 +0000
commitcb590dd82cdc6d60c61a4296a3cf83813b28ece9 (patch)
tree3a87cde63e9d5f0991a8b944f51d636d4eeddeb5 /tests/config
parent5d85974bc0d56cdcd3c1a84040a26bdcc7f17325 (diff)
downloadprofani-tty-cb590dd82cdc6d60c61a4296a3cf83813b28ece9.tar.gz
Added help for /alias command
Diffstat (limited to 'tests/config')
-rw-r--r--tests/config/helpers.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/config/helpers.c b/tests/config/helpers.c
index 9068546a..744c48e4 100644
--- a/tests/config/helpers.c
+++ b/tests/config/helpers.c
@@ -23,11 +23,11 @@ void create_config_file(void **state)
}
g_string_free(profanity_dir, TRUE);
- fopen("./tests/files/xdg_config_home/profanity/profrc", "ab+");
-
- g_free(xdg_config);
-
- prefs_load();
+ FILE *f = fopen("./tests/files/xdg_config_home/profanity/profrc", "ab+");
+ if (f) {
+ g_free(xdg_config);
+ prefs_load();
+ }
}
void delete_config_file(void **state)