]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
src/utils/cmds/getthreshold.c: Fix (incorrect) "missing-braces" warning.
authorFlorian Forster <octo@google.com>
Tue, 14 Jul 2020 18:54:19 +0000 (20:54 +0200)
committerFlorian Forster <octo@google.com>
Wed, 29 Jul 2020 11:40:54 +0000 (13:40 +0200)
src/utils/cmds/getthreshold.c

index cd4277ae9039053f7a56f5e73925fcb290b4be28..d7a350ca2d2a3cfa78e6bc3c75096f89abb8f2c3 100644 (file)
@@ -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",