aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-12-07 23:54:14 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-08 09:41:28 +0100
commit28943d2defe437872dafa4c0959177b54c3de4d0 (patch)
tree1c199eca3b21efb997b640f1670dd390e282e9af /qt-ui/diveplanner.cpp
parentd84f397790e1d2f3542a9eed978aa3e456c2976b (diff)
downloadsubsurface-28943d2defe437872dafa4c0959177b54c3de4d0.tar.gz
Add some assert guard around gas finding code
The code would have leaved gasidx undefined if it doesn't find a correct gas, so this asserts instead of using uninitialized variables as array index. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
0 files changed, 0 insertions, 0 deletions