From c2b076548d9dcf0dc71c34e416214604eb76e7f9 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sat, 3 Jan 2015 08:13:47 +0200 Subject: [PATCH] Fix a crash when dive date is epoch With a dive that's date is 1970-01-01, starting at 00:00 the assert causes subsurface to crash when performing auto grouping. This happens to be a perfectly valid date, and we might end up getting such dates when importing dives from other software, so removing the assert. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- divelist.c | 1 - 1 file changed, 1 deletion(-) diff --git a/divelist.c b/divelist.c index 8802aaea1..ce67414b5 100644 --- a/divelist.c +++ b/divelist.c @@ -655,7 +655,6 @@ void add_dive_to_trip(struct dive *dive, dive_trip_t *trip) { if (dive->divetrip == trip) return; - assert(trip->when); remove_dive_from_trip(dive, false); trip->nrdives++; dive->divetrip = trip;