diff options
-rw-r--r-- | subsurface-core/dive.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/subsurface-core/dive.c b/subsurface-core/dive.c index 9af63791a..fd0d25989 100644 --- a/subsurface-core/dive.c +++ b/subsurface-core/dive.c @@ -2162,6 +2162,9 @@ static int find_sample_offset(struct divecomputer *a, struct divecomputer *b) */ static int similar(unsigned long a, unsigned long b, unsigned long expected) { + if (!a && !b) + return 1; + if (a && b) { unsigned long min, max, diff; |