mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix crash when opening Poseidon_MkVILog.xml
In commit d5d7fdc9af
("For CCR dives, show plot for diluent and O2
cylinder pressures") we end up dereferencing current before it is first
initialized. Bad.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
299133d7b1
commit
55763d3da1
1 changed files with 2 additions and 1 deletions
|
@ -402,6 +402,7 @@ void populate_pressure_information(struct dive *dive, struct divecomputer *dc, s
|
||||||
missing_pr = 1;
|
missing_pr = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (current)
|
||||||
current->end = pressure;
|
current->end = pressure;
|
||||||
|
|
||||||
/* Was it continuous? */
|
/* Was it continuous? */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue