amqp: no need to zero-initialize buffer
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 1 Aug 2016 19:55:13 +0000 (21:55 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 1 Aug 2016 19:55:13 +0000 (21:55 +0200)
all messages written into it are null-terminated

src/amqp.c

index 71e38a4..9a20f4a 100644 (file)
@@ -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))