diff --git a/src/datum_conf.c b/src/datum_conf.c index 103e5d7..b1d0513 100644 --- a/src/datum_conf.c +++ b/src/datum_conf.c @@ -262,7 +262,7 @@ int datum_read_config(const char *conffile) { config = load_json_from_file(conffile); - if (!config) { + if (!json_is_object(config)) { DLOG_FATAL("Could not read configuration JSON file!"); return -1; } @@ -270,10 +270,10 @@ int datum_read_config(const char *conffile) { for (i=0;i