diff options
-rw-r--r-- | src/libserver/dynamic_cfg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libserver/dynamic_cfg.c b/src/libserver/dynamic_cfg.c index 39b2ebf7b..33231b462 100644 --- a/src/libserver/dynamic_cfg.c +++ b/src/libserver/dynamic_cfg.c @@ -175,7 +175,7 @@ json_config_fin_cb (struct map_cb_data *data) ucl_object_t *top; struct ucl_parser *parser; - if (data->prev_data) { + if (data->cur_data && data->prev_data) { jb = data->prev_data; /* Clean prev data */ if (jb->buf) { @@ -190,7 +190,6 @@ json_config_fin_cb (struct map_cb_data *data) jb = data->cur_data; } else { - msg_err ("no data read"); return; } |