diff --git a/src/log_logstash.c b/src/log_logstash.c
index 61e7f4848e3a4b6dd24f87cf5ac3fb630416e7fd..2883e6c97d2872ac8e4e396cdedbe849e4effce5 100644 (file)
--- a/src/log_logstash.c
+++ b/src/log_logstash.c
{
yajl_gen g;
#if !defined(HAVE_YAJL_V2)
- yajl_gen_config conf;
+ yajl_gen_config conf = {};
conf.beautify = 0;
#endif
#if HAVE_YAJL_V2
g = yajl_gen_alloc(NULL);
#else
- yajl_gen_config conf;
+ yajl_gen_config conf = {};
conf.beautify = 0;
g = yajl_gen_alloc(&conf, NULL);