diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-02-17 19:10:04 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-17 19:10:35 -0800 |
commit | 4e5e87c51d19a7676c97b6e3b4a4b48147d1313b (patch) | |
tree | 6bbeeff306487c42e10366c37fbca5ed00030e9e /profile.c | |
parent | 31ee4dac65bd6e8b0c3583fc0245cc83a90542d5 (diff) | |
download | subsurface-4e5e87c51d19a7676c97b6e3b4a4b48147d1313b.tar.gz |
Don't return a stack variable
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 2 |
1 files changed, 1 insertions, 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; |