diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-01-03 08:13:47 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-02 22:42:03 -0800 |
commit | c2b076548d9dcf0dc71c34e416214604eb76e7f9 (patch) | |
tree | 789fd7c4e6daa02061997170f5bbf717254e2478 | |
parent | ddd0523bb41ba38a2f683845a9d187c9936ae800 (diff) | |
download | subsurface-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>
-rw-r--r-- | divelist.c | 1 |
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; |