From baa2269a17f44cf8bb10bd57f9739b6e286aca5a Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Mon, 1 Aug 2016 21:55:13 +0200 Subject: [PATCH] amqp: no need to zero-initialize buffer all messages written into it are null-terminated --- src/amqp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amqp.c b/src/amqp.c index 71e38a47..9a20f4a1 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -807,7 +807,7 @@ static int camqp_write (const data_set_t *ds, const value_list_t *vl, /* {{{ */ { camqp_config_t *conf = user_data->data; char routing_key[6 * DATA_MAX_NAME_LEN]; - char buffer[8192] = { 0 }; + char buffer[8192]; int status; if ((ds == NULL) || (vl == NULL) || (conf == NULL)) -- 2.30.2