mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
code cleanup: use gasmix_air for zero initialized gas
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c81693d023
commit
247194e839
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ enum divemode_t get_current_divemode(const struct divecomputer *dc, int time, co
|
|||
|
||||
struct gasmix get_gasmix_from_event(const struct dive *dive, const struct event *ev)
|
||||
{
|
||||
struct gasmix dummy = { 0 };
|
||||
struct gasmix dummy = gasmix_air;
|
||||
if (ev && event_is_gaschange(ev)) {
|
||||
int index = ev->gas.index;
|
||||
if (index >= 0 && index < dive->cylinders.nr)
|
||||
|
|
Loading…
Reference in a new issue