summaryrefslogtreecommitdiffstats
path: root/sources/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sources/cfg.c')
-rw-r--r--sources/cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/cfg.c b/sources/cfg.c
index 05ba80a..54067b0 100644
--- a/sources/cfg.c
+++ b/sources/cfg.c
@@ -98,7 +98,7 @@ int parse_json_config(const char *filename, struct og_server_cfg *cfg)
int fd, ret;
fd = open(filename, O_RDONLY);
- if (!fd) {
+ if (fd < 0) {
syslog(LOG_ERR, "Cannot open %s", filename);
return -1;
}