summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/main.c b/main.c
index ff874834c..ca3722383 100644
--- a/main.c
+++ b/main.c
@@ -126,16 +126,12 @@ void report_dives(gboolean is_imported)
struct dive **pp = &dive_table.dives[i-1];
struct dive *prev = pp[0];
struct dive *dive = pp[1];
- struct dive *next;
struct dive *merged;
if (prev->when + prev->duration.seconds < dive->when)
continue;
- next = NULL;
- if (i < dive_table.nr-1)
- next = pp[2];
- merged = try_to_merge(prev, dive, next);
+ merged = try_to_merge(prev, dive);
if (!merged)
continue;