X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_prometheus.c;h=b9040223bcc0559855f4f2dd6f9e59cc473fcb53;hb=904a45ef1b06bf7b14238af6d2aeb9bce176daf7;hp=fe3b940748e01e54c95e771d4cd8151c1fd2fe43;hpb=0fce99de653c243e0597d25808275712048b9126;p=collectd.git 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}, };