summaryrefslogtreecommitdiffstats
path: root/core/divelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/divelist.c')
-rw-r--r--core/divelist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/divelist.c b/core/divelist.c
index 451ed70a7..a9ce0d7a3 100644
--- a/core/divelist.c
+++ b/core/divelist.c
@@ -1446,6 +1446,7 @@ void clear_dive_file_data()
{
while (dive_table.nr)
delete_single_dive(0);
+ current_dive = NULL;
while (dive_site_table.nr)
delete_dive_site(get_dive_site(0, &dive_site_table), &dive_site_table);
if (trip_table.nr != 0) {