Skip to content

Commit

Permalink
prometheus: properly initiate local stats val
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Aug 9, 2023
1 parent 80a96be commit bc1a9ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/prometheus/prometheus.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ static int prom_stats_param( modparam_t type, void* val)
LM_ERR("oom!\n");
return -1;
}
memset(s, 0, sizeof *s);
s->name.len = name.len;
s->name.s = s->name_s;
memcpy(s->name.s, name.s, name.len);
Expand Down

0 comments on commit bc1a9ce

Please sign in to comment.