From 4f4ad5dd93776f330a0fb28fbece7157108e0c4c Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 7 Aug 2016 19:12:21 +0200 Subject: [PATCH] src/utils_format_json.c: Fix usage of yajl_gen_config(). --- src/utils_format_json.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils_format_json.c b/src/utils_format_json.c index 63f03da3..5b5fcdf0 100644 --- a/src/utils_format_json.c +++ b/src/utils_format_json.c @@ -676,8 +676,8 @@ int format_json_notification (char *buffer, size_t buffer_size, /* {{{ */ if (g == NULL) return -1; # if COLLECT_DEBUG - yajl_gen_config (g, yajl_gen_beautify); - yajl_gen_config (g, yajl_gen_validate_utf8); + yajl_gen_config (g, yajl_gen_beautify, 1); + yajl_gen_config (g, yajl_gen_validate_utf8, 1); # endif #else /* !HAVE_YAJL_V2 */ -- 2.30.2