X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_prometheus.c;h=fe3b940748e01e54c95e771d4cd8151c1fd2fe43;hb=a72ad42076337f3b85db3b06565ae86a83226ab3;hp=b9040223bcc0559855f4f2dd6f9e59cc473fcb53;hpb=eada465ff40eb2ecaef17490e5462dab3b8874fe;p=collectd.git diff --git a/src/write_prometheus.c b/src/write_prometheus.c index b9040223..fe3b9407 100644 --- a/src/write_prometheus.c +++ b/src/write_prometheus.c @@ -156,8 +156,7 @@ 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}, };