diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-12-11 15:26:47 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-11 16:29:02 +0100 |
commit | f09afad5a0515e2e40a91385d115840bc321697a (patch) | |
tree | 64ab3ba71a8320c0c59368764ca50ac468c94e64 /profile.h | |
parent | ea895fbecc4b7aea0eacc9cb7ce3acece926343c (diff) | |
download | subsurface-f09afad5a0515e2e40a91385d115840bc321697a.tar.gz |
divelist.c: Fix possible NULL pointer deref.
calculate_cns():
The check if prev_dive is NULL should be before calling
prev_dive->when.
Reported by the program cppcheck.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.h')
0 files changed, 0 insertions, 0 deletions