summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/save-xml.c b/save-xml.c
index ddaa8cd2a..e52cfdffd 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -392,12 +392,8 @@ void save_one_dive(struct membuffer *b, struct dive *dive)
save_weightsystem_info(b, dive);
save_dive_temperature(b, dive);
/* Save the dive computer data */
- dc = &dive->dc;
- do {
+ for_each_dc(dive, dc)
save_dc(b, dive, dc);
- dc = dc->next;
- } while (dc);
-
put_format(b, "</dive>\n");
}