author | Vincent Bernat <vincent@bernat.im> | |
Mon, 3 Aug 2015 08:06:30 +0000 (10:06 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 3 Aug 2015 21:23:24 +0000 (23:23 +0200) | ||
commit | a9b65b73fc54f48b6f3633efa1a6c89f78a148bf | |
tree | 4021792010a6dea1faf5cbb11049f45d5db99533 | tree | snapshot |
parent | ec2e074fd3af505875984dff66eb23c9b024f531 | commit | diff |
logstash: initialize conf struct to 0
With YAJL 1 (at least on Ubuntu Precise), if `conf.indentString` is not
initialized correctly, we would get a segfault even when `conf.beautify`
is set to 0. We avoid this case by initializing the whole structure to
0. `conf.beautify = 0` is kept for explicitness.
With YAJL 1 (at least on Ubuntu Precise), if `conf.indentString` is not
initialized correctly, we would get a segfault even when `conf.beautify`
is set to 0. We avoid this case by initializing the whole structure to
0. `conf.beautify = 0` is kept for explicitness.
src/log_logstash.c | diff | blob | history |