From: Ruben Kerkhof Date: Mon, 1 Aug 2016 19:55:13 +0000 (+0200) Subject: amqp: no need to zero-initialize buffer X-Git-Tag: collectd-5.6.0~132^2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=baa2269a17f44cf8bb10bd57f9739b6e286aca5a;p=collectd.git amqp: no need to zero-initialize buffer all messages written into it are null-terminated --- 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))