From: Ruben Kerkhof Date: Sun, 16 Dec 2018 13:04:04 +0000 (+0100) Subject: Fix build X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=191535ec13cc513070b8e052b97659ff89c6cd88;p=collectd.git Fix build 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 --- diff --git a/src/utils_vl_lookup_test.c b/src/utils_vl_lookup_test.c index 274ddcd4..1cb7b65b 100644 --- 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);