diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-09-14 16:26:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 16:26:41 +0300 |
commit | ce055a9679636c895535409b7091315781d5534c (patch) | |
tree | fd3de77f7a6c400f7fa944e0528b840ab4a0e5fa /libnetdata | |
parent | 934f620265d2e7a2be160cb084ec01875ed3491e (diff) |
facets: do not shadow local variable (#15968)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/facets/facets.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libnetdata/facets/facets.c b/libnetdata/facets/facets.c index c4954e9ff4..b0d4d64b12 100644 --- a/libnetdata/facets/facets.c +++ b/libnetdata/facets/facets.c @@ -652,9 +652,9 @@ static void facets_histogram_generate(FACETS *facets, FACET_KEY *k, BUFFER *wb) buffer_json_member_add_object(wb, "view"); { char title[1024 + 1] = "Events Distribution"; - FACET_KEY *k = dictionary_get(facets->keys, facets->histogram.chart); - if(k && k->name) - snprintfz(title, 1024, "Events Distribution by %s", k->name); + FACET_KEY *kt = dictionary_get(facets->keys, facets->histogram.chart); + if(kt && kt->name) + snprintfz(title, 1024, "Events Distribution by %s", kt->name); buffer_json_member_add_string(wb, "title", title); buffer_json_member_add_time_t(wb, "update_every", facets->histogram.slot_width_ut / USEC_PER_SEC); |