aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-10-20 04:22:32 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-19 22:03:51 -0400
commite4a9787c5e6efb408dfb8280f51925e5a512b7d6 (patch)
tree5428943a9dbbd292fc414b6162ef688a14d36d72 /profile-widget/profilewidget2.cpp
parentc3274b0b9ff9cb3827ac867b0aaec545ebaa29a8 (diff)
downloadsubsurface-e4a9787c5e6efb408dfb8280f51925e5a512b7d6.tar.gz
dive.h: add handling of NULL in get_dive_dc()
This line: dc = &dive->dc can SIGSEGV for a NULL 'dive' pointer. return NULL if 'dive' is NULL. Also handle NULL 'dc' in get_gasmix() and set 'ev' to NULL. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
0 files changed, 0 insertions, 0 deletions