From 0c1f7ac9eeb1605a04e1367c3d085c7a47dc131e Mon Sep 17 00:00:00 2001 From: Fujimoto Seiji Date: Tue, 11 Dec 2018 12:49:12 +0900 Subject: [PATCH] out_forward: initialize the array with `{0}` not `{}`. Namely C99 requires programmers to use `{0}` to initialize an array. The syntax `{}` is only for C++ and causes an compilation error on VC++ (GCC accepts it, though). Signed-off-by: Fujimoto Seiji --- plugins/out_forward/forward.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/out_forward/forward.c b/plugins/out_forward/forward.c index 21577984710..bcfd487dafc 100644 --- a/plugins/out_forward/forward.c +++ b/plugins/out_forward/forward.c @@ -218,7 +218,7 @@ static int secure_forward_ping(struct flb_upstream_conn *u_conn, static int secure_forward_pong(char *buf, int buf_size) { int ret; - char msg[32] = {}; + char msg[32] = {0}; size_t off = 0; msgpack_unpacked result; msgpack_object root;