From 247194e839cec81304734861db8e8e6e381a5483 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 8 Jan 2020 20:54:53 -0800 Subject: code cleanup: use gasmix_air for zero initialized gas Signed-off-by: Dirk Hohndel --- core/dive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/dive.c') diff --git a/core/dive.c b/core/dive.c index 0cf050ba9..65398cade 100644 --- a/core/dive.c +++ b/core/dive.c @@ -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) -- cgit v1.2.3-70-g09d2