From: Florian Forster Date: Tue, 14 Jul 2020 18:54:19 +0000 (+0200) Subject: src/utils/cmds/getthreshold.c: Fix (incorrect) "missing-braces" warning. X-Git-Tag: 6.0.0-rc0~144^2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63c572690a5cb8ef5f302d0bd704cdb7ea6c06c5;p=thirdparty%2Fcollectd.git src/utils/cmds/getthreshold.c: Fix (incorrect) "missing-braces" warning. --- diff --git a/src/utils/cmds/getthreshold.c b/src/utils/cmds/getthreshold.c index cd4277ae9..d7a350ca2 100644 --- a/src/utils/cmds/getthreshold.c +++ b/src/utils/cmds/getthreshold.c @@ -81,7 +81,9 @@ int handle_getthreshold(FILE *fh, char *buffer) { return -1; } - threshold_t threshold = {0}; + threshold_t threshold = { + .flags = 0, + }; status = ut_search_threshold(fam->metric.ptr, &threshold); if (status == ENOENT) { print_to_socket(fh, "-1 No threshold found for identifier %s\n",