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
char const *plugin_instance, char const *type,
char const *type_instance,
unsigned int group_by) {
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);
void *user_class;
strncpy(ident.host, host, sizeof(ident.host) - 1);