diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-11-30 14:40:32 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-30 07:46:17 -0800 |
commit | 5a1a25a4760463262f52a75cbc0e57340688024b (patch) | |
tree | 1982688236465b984130e183963982e138b8ed4e /statistics.c | |
parent | f7efc0781738b9d6a9128f6e66bfc9b47c912910 (diff) | |
download | subsurface-5a1a25a4760463262f52a75cbc0e57340688024b.tar.gz |
Fix a crash when no trip exists
When there are no trips at all, we have to skip the Yearly statistics
alltogether, including the header line (that should display all the
dives added together).
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'statistics.c')
-rw-r--r-- | statistics.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/statistics.c b/statistics.c index 807539f2a..18666bda0 100644 --- a/statistics.c +++ b/statistics.c @@ -127,7 +127,6 @@ void process_all_dives(struct dive *dive, struct dive **prev_dive) memset(stats_monthly, 0, size); memset(stats_by_trip, 0, size); stats_yearly[0].is_year = TRUE; - stats_by_trip[0].is_trip = TRUE; /* this relies on the fact that the dives in the dive_table * are in chronological order */ |