From 4e5e87c51d19a7676c97b6e3b4a4b48147d1313b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 17 Feb 2014 19:10:04 -0800 Subject: Don't return a stack variable Signed-off-by: Dirk Hohndel --- profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2