profile: fix uninitialized variable in DivePercentageItem

Fix bug introduced in 505e4e47eb.

Nobody complained, so not clear if that was user visible.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-09 18:37:02 +01:00 committed by bstoeger
parent cf990b0f39
commit 8b5812bc2c

View file

@ -114,7 +114,7 @@ void DivePercentageItem::replot(const dive *d, const struct divecomputer *dc, co
continue; continue;
double value = item.percentages[tissue]; double value = item.percentages[tissue];
struct gasmix gasmix = get_gasmix(d, dc, sec, &ev, gasmix); struct gasmix gasmix = get_gasmix(d, dc, sec, &ev, gasmix_air);
int inert = get_n2(gasmix) + get_he(gasmix); int inert = get_n2(gasmix) + get_he(gasmix);
color = colorScale(value, inert); color = colorScale(value, inert);
if (nextX >= width) if (nextX >= width)