summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index bcf4fb183..ba555e252 100644
--- a/profile.c
+++ b/profile.c
@@ -721,7 +721,7 @@ static void check_gas_change_events(struct dive *dive, struct divecomputer *dc,
struct plot_info calculate_max_limits_new(struct dive *dive, struct divecomputer *dc)
{
- struct plot_info pi;
+ static struct plot_info pi;
int maxdepth = dive->maxdepth.mm;
int maxtime = 0;
int maxpressure = 0, minpressure = INT_MAX;