X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fwrite_prometheus.c;h=b9040223bcc0559855f4f2dd6f9e59cc473fcb53;hp=fe3b940748e01e54c95e771d4cd8151c1fd2fe43;hb=21c84cec32921e6de8feaa5496f337496379ea23;hpb=06d8ab31ff97b30d601e8f8a942bedc339825042 diff --git a/src/write_prometheus.c b/src/write_prometheus.c index fe3b9407..b9040223 100644 --- a/src/write_prometheus.c +++ b/src/write_prometheus.c @@ -156,7 +156,8 @@ static char *format_labels(char *buffer, size_t buffer_size, #define LABEL_BUFFER_SIZE (LABEL_KEY_SIZE + LABEL_VALUE_SIZE + 4) char *labels[3] = { - (char[LABEL_BUFFER_SIZE]){0}, (char[LABEL_BUFFER_SIZE]){0}, + (char[LABEL_BUFFER_SIZE]){0}, + (char[LABEL_BUFFER_SIZE]){0}, (char[LABEL_BUFFER_SIZE]){0}, };