diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-12 17:31:21 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-12 17:31:21 +0000 |
| commit | ca5e693524b4131e94b5f02f76a874507c02bf1d (patch) | |
| tree | 38249a751815c213c4cccea35f4b7d08971e2215 | |
| parent | doc: add foot.1 man page (diff) | |
config: don't log a NULL path
| -rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -455,8 +455,6 @@ config_load(struct config *conf) }; char *path = get_config_path(); - LOG_INFO("loading configuration from %s", path); - if (path == NULL) { /* Default conf */ LOG_WARN("no configuration found, using defaults"); @@ -464,6 +462,8 @@ config_load(struct config *conf) goto out; } + LOG_INFO("loading configuration from %s", path); + FILE *f = fopen(path, "r"); if (f == NULL) { LOG_ERR("%s: failed to open", path); |
