summaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/save-git.c')
-rw-r--r--core/save-git.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/save-git.c b/core/save-git.c
index fcfbd93d1..7717a4b5f 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -382,10 +382,10 @@ static void save_one_event(struct membuffer *b, struct dive *dive, struct event
show_index(b, ev->value, "value=", "");
show_utf8(b, " name=", ev->name, "");
if (event_is_gaschange(ev)) {
- struct gasmix *mix = get_gasmix_from_event(dive, ev);
+ struct gasmix mix = get_gasmix_from_event(dive, ev);
if (ev->gas.index >= 0)
show_integer(b, ev->gas.index, "cylinder=", "");
- put_gasmix(b, mix);
+ put_gasmix(b, &mix);
}
put_string(b, "\n");
}