Skip to content

Commit

Permalink
encode: prometheus: initialize variable (CID 507545)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Oct 14, 2024
1 parent 333380a commit 7d7a555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmt_encode_prometheus.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static void append_metric_value(cfl_sds_t *buf,
struct prom_fmt *fmt, int add_timestamp)
{
int len;
double val;
double val = 0.0;
uint64_t ts;
char tmp[128];

Expand Down

0 comments on commit 7d7a555

Please sign in to comment.