projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc4ccdd
)
Fix build
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 16 Dec 2018 13:04:04 +0000
(14:04 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 16 Dec 2018 13:04:04 +0000
(14:04 +0100)
lookup_identifier_t has a few array members.
To zero-initialize these we need a pair of extra braces.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80454
src/utils_vl_lookup_test.c
patch
|
blob
|
history
diff --git
a/src/utils_vl_lookup_test.c
b/src/utils_vl_lookup_test.c
index
274ddcd
..
1cb7b65
100644
(file)
--- a/
src/utils_vl_lookup_test.c
+++ b/
src/utils_vl_lookup_test.c
@@
-85,7
+85,7
@@
static int checked_lookup_add(lookup_t *obj, /* {{{ */
char const *plugin_instance, char const *type,
char const *type_instance,
unsigned int group_by) {
- lookup_identifier_t ident = {
0
};
+ lookup_identifier_t ident = {
{0}
};
void *user_class;
strncpy(ident.host, host, sizeof(ident.host) - 1);