mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:03:24 +00:00
Don't return a stack variable
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
31ee4dac65
commit
4e5e87c51d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue