diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-09-13 20:41:21 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-13 20:41:21 -0700 |
commit | b150c4fd414b25c8a48d89f61aa6bc34030717e4 (patch) | |
tree | 75a43b0d6008144c1c3bb0ce654bd90bf42ec5a3 /statistics.c | |
parent | e84cdf59bba08464e48a0159ffbef7d2f923c8cd (diff) | |
download | subsurface-b150c4fd414b25c8a48d89f61aa6bc34030717e4.tar.gz |
Make sure all parts of the edit dialogs are using current_dive / edit_dive
While most of this problem was fixed in commit 18b3dca431a4 ("Fix a long
standing bug when editing dives"), it turns out that I missed a couple of
the equipment callbacks.
In the corner case of having an empty divelist (where therefore
current_dive == NULL) manually adding a dive and trying to add equipment
(cylinder or weightsystem) to it would crash subsurface as we were trying
to dereference current_dive.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'statistics.c')
0 files changed, 0 insertions, 0 deletions