diff options
Diffstat (limited to 'statistics.c')
-rw-r--r-- | statistics.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/statistics.c b/statistics.c index fbc4f9273..001c45155 100644 --- a/statistics.c +++ b/statistics.c @@ -543,7 +543,8 @@ static void show_single_dive_stats(struct dive *dive) struct tm tm; process_all_dives(dive, &prev_dive); - + if (!dive) + return; utc_mkdate(dive->when, &tm); snprintf(buf, sizeof(buf), /*++GETTEXT 80 chars: weekday, monthname, day, year, hour, min */ |