From 191535ec13cc513070b8e052b97659ff89c6cd88 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 16 Dec 2018 14:04:04 +0100 Subject: [PATCH] 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 --- src/utils_vl_lookup_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0