diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-10-20 04:22:32 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-19 22:03:51 -0400 |
commit | e4a9787c5e6efb408dfb8280f51925e5a512b7d6 (patch) | |
tree | 5428943a9dbbd292fc414b6162ef688a14d36d72 /profile-widget/profilewidget2.cpp | |
parent | c3274b0b9ff9cb3827ac867b0aaec545ebaa29a8 (diff) | |
download | subsurface-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