aboutsummaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-01-03 08:13:47 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-02 22:42:03 -0800
commitc2b076548d9dcf0dc71c34e416214604eb76e7f9 (patch)
tree789fd7c4e6daa02061997170f5bbf717254e2478 /divelist.c
parentddd0523bb41ba38a2f683845a9d187c9936ae800 (diff)
downloadsubsurface-c2b076548d9dcf0dc71c34e416214604eb76e7f9.tar.gz
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 <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c1
1 files changed, 0 insertions, 1 deletions
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;