From e29d9510edcbd6ceb419b2b3e5b5f82961d4ab3e Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 16 Dec 2018 00:52:37 +0000 Subject: [PATCH] Remove a debug message Signed-off-by: Yuxuan Shui --- src/config_libconfig.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/config_libconfig.c b/src/config_libconfig.c index c9e99100..9f9817fa 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) {