aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-08 20:54:53 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-10 02:37:03 +0900
commit247194e839cec81304734861db8e8e6e381a5483 (patch)
tree00f46804728b9122db92c56f8180bed82f606405 /core
parentc81693d02335fab14c364947b2e2df4e1327419e (diff)
downloadsubsurface-247194e839cec81304734861db8e8e6e381a5483.tar.gz
code cleanup: use gasmix_air for zero initialized gas
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/dive.c2
1 files changed, 1 insertions, 1 deletions
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)