projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00395ef
)
amqp: no need to zero-initialize buffer
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Mon, 1 Aug 2016 19:55:13 +0000
(21:55 +0200)
committer
Ruben 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
patch
|
blob
|
history
diff --git
a/src/amqp.c
b/src/amqp.c
index
71e38a4
..
9a20f4a
100644
(file)
--- 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))