diff --git a/src/config_libconfig.c b/src/config_libconfig.c index c9e9910..9f9817f 100644 --- a/src/config_libconfig.c +++ b/src/config_libconfig.c @@ -53,11 +53,8 @@ open_config_file(char *cpath, char **ppath) { for (size_t i = 0; i < ARR_SIZE(config_paths); i++) { char *path = xdgConfigFind(config_paths[i], NULL); FILE *ret = fopen(path, "r"); - if (ret) { - printf_errf("(): file is %s", path); - if (ppath) { + if (ret && ppath) { *ppath = strdup(path); - } } free(path); if (ret) {