subsurface/core
Robert C. Helling 28db9ede41 Don't access uninitialized deco_structure
Coverty found that in the export functions, we initialize
the planner deco state with NULL and then possibly later
access its content. This makes sure, we don't do that.

Let's see if this makes Coverty happy or I missed somehting
else.

Fixes CID 350736
Fixes CID 350735

Signed-off-by: Robert C. Helling <helling@atdotde.de>
2019-11-16 12:34:30 -08:00
..
settings Planner: Add option to treat O2 as narcotic 2019-10-31 00:30:38 -07:00
subsurface-qt Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
android.cpp Android: print Android HW information 2019-09-21 15:13:10 -07:00
applicationstate.cpp
applicationstate.h
btdiscovery.cpp Mares: improve BT discovery logic 2019-10-26 04:39:32 -07:00
btdiscovery.h Revert the singleton PR 2019-09-27 16:26:58 -07:00
checkcloudconnection.cpp Cloud storage: remove outdated certificate hack 2019-10-09 22:38:29 +03:00
checkcloudconnection.h get rid of some foreach and Q_FOREACH constructs 2019-04-12 12:59:17 +03:00
cloudstorage.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
cloudstorage.h
CMakeLists.txt
cochran.c Core: remove MAX_CYLINDERS restriction 2019-11-09 19:19:04 +01:00
cochran.h
color.cpp
color.h
compressibility.r
configuredivecomputer.cpp Cleanup: move file-related function declarations to file.h 2019-08-08 16:26:31 -07:00
configuredivecomputer.h Fix broken windows build with latest MXE 2019-08-29 12:55:25 -07:00
configuredivecomputerthreads.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
configuredivecomputerthreads.h
connectionlistmodel.cpp
connectionlistmodel.h
datatrak.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
datatrak.h
deco.c Parser: remove global state 2019-08-08 16:26:31 -07:00
deco.h Parser: remove global state 2019-08-08 16:26:31 -07:00
device.c
device.h Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
devicedetails.cpp
devicedetails.h
display.h Core: remove MAX_CYLINDERS restriction 2019-11-09 19:19:04 +01:00
dive.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
dive.h Core: remove MAX_CYLINDERS restriction 2019-11-09 19:19:04 +01:00
divecomputer.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
divecomputer.h
divelist.c Cleanup: move clearing of current_dive into clear_dive_file_data() 2019-11-16 08:29:53 -08:00
divelist.h Core: implement move functions for dive and dive_site table 2019-10-02 08:04:49 -07:00
divelogexportlogic.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
divelogexportlogic.h
divemode.h Cleanup: move planner/deco related declarations planner/deco.h 2019-08-08 16:26:31 -07:00
divesite-helper.cpp
divesite.c Core: implement move functions for dive and dive_site table 2019-10-02 08:04:49 -07:00
divesite.h Cleanup: remove dive_table and dive_site_table Q_METATYPEs 2019-10-02 08:04:49 -07:00
divesitehelpers.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
divesitehelpers.h
downloadfromdcthread.cpp Import: keep dive and dive site tables in DiveImportedModel 2019-10-02 08:04:49 -07:00
downloadfromdcthread.h Import: keep dive and dive site tables in DiveImportedModel 2019-10-02 08:04:49 -07:00
equipment.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
equipment.h Cleanup: return cylinder from add_empty_cylinder() 2019-11-09 19:19:04 +01:00
errorhelper.c Don't expose 'detach_buffer()' to membuffer users 2019-10-27 12:42:54 -07:00
errorhelper.h Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
exif.cpp
exif.h
file.c Fix potential crash when saved_git_id is NULL 2019-08-10 20:59:53 +02:00
file.h Cleanup: move file-related function declarations to file.h 2019-08-08 16:26:31 -07:00
format.cpp
format.h
gas-model.c
gas.c
gas.h
gaspressures.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
gaspressures.h
gettext.h
gettextfromc.cpp
gettextfromc.h
git-access.c Cleanup: move file-related function declarations to file.h 2019-08-08 16:26:31 -07:00
git-access.h
gpslocation.cpp Mobile: provide better tracking of applied GPS fixes 2019-10-26 11:38:26 -07:00
gpslocation.h Mobile: provide better tracking of applied GPS fixes 2019-10-26 11:38:26 -07:00
imagedownloader.cpp
imagedownloader.h
import-cobalt.c Cleanup: return cylinder from cylinder_start() in parser 2019-11-09 19:19:04 +01:00
import-csv.c Core: remove MAX_CYLINDERS restriction 2019-11-09 19:19:04 +01:00
import-csv.h
import-divinglog.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
import-shearwater.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
import-suunto.c Cleanup: return cylinder from cylinder_start() in parser 2019-11-09 19:19:04 +01:00
ios.cpp Cleanup: move file-related function declarations to file.h 2019-08-08 16:26:31 -07:00
libdivecomputer.c Core: remove MAX_CYLINDERS restriction 2019-11-09 19:19:04 +01:00
libdivecomputer.h Core: unconditionally include stdio.h in libdivecomputer.h 2019-08-10 09:16:01 -07:00
liquivision.c Core: remove MAX_CYLINDERS restriction 2019-11-09 19:19:04 +01:00
load-git.c Core: remove MAX_CYLINDERS restriction 2019-11-09 19:19:04 +01:00
macos.c Add missing header files to macos.c 2019-08-11 08:20:38 +02:00
membuffer.c Don't expose 'detach_buffer()' to membuffer users 2019-10-27 12:42:54 -07:00
membuffer.h Don't expose 'detach_buffer()' to membuffer users 2019-10-27 12:42:54 -07:00
metadata.cpp
metadata.h
metrics.cpp
metrics.h
ostctools.c Cleanup: clean up resource handling in ostctools.c 2019-10-26 19:17:53 -07:00
parse-xml.c Parser: set timestamp to zero if parsing failed 2019-11-09 19:19:04 +01:00
parse.c Cleanup: return cylinder from add_empty_cylinder() 2019-11-09 19:19:04 +01:00
parse.h Cleanup: return cylinder from cylinder_start() in parser 2019-11-09 19:19:04 +01:00
planner.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
planner.h Cleanup: remove global disclaimer variable 2019-09-10 21:31:21 +02:00
plannernotes.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
pref.h Planner: Add option to treat O2 as narcotic 2019-10-31 00:30:38 -07:00
profile.c Don't access uninitialized deco_structure 2019-11-16 12:34:30 -08:00
profile.h Profile: dynamically allocate plot pressure data 2019-11-09 19:19:04 +01:00
qt-ble.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
qt-ble.h
qt-gui.h
qt-init.cpp Stop support Qt versions before 5.9 2019-10-14 13:37:17 -07:00
qthelper.cpp Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
qthelper.h Stop support Qt versions before 5.9 2019-10-14 13:37:17 -07:00
qtserialbluetooth.cpp
save-git.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
save-html.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
save-html.h Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
save-profiledata.c Core: remove MAX_CYLINDERS restriction 2019-11-09 19:19:04 +01:00
save-profiledata.h Cleanup: move file-related function declarations to file.h 2019-08-08 16:26:31 -07:00
save-xml.c Cylinders: access cylinders with get_cylinder() 2019-11-09 19:19:04 +01:00
serial_ftdi.c
sha1.c
sha1.h
ssrf.h
statistics.c Core: set gas use to zero if no values are given 2019-11-16 09:23:39 +01:00
statistics.h Core: dynamically allocate the result of get_gas_used() 2019-11-09 19:19:04 +01:00
strndup.h
strtod.c
structured_list.h
subsurface-string.h
subsurfacestartup.c Planner: Add option to treat O2 as narcotic 2019-10-31 00:30:38 -07:00
subsurfacestartup.h Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
subsurfacesysinfo.cpp
subsurfacesysinfo.h
table.h Core: implement move functions for dive and dive_site table 2019-10-02 08:04:49 -07:00
tag.c Don't expose 'detach_buffer()' to membuffer users 2019-10-27 12:42:54 -07:00
tag.h
taxonomy.c
taxonomy.h
time.c
trip.c Cleanup: fix obvious resource leak 2019-10-26 19:17:53 -07:00
trip.h Core: add unique id to trip 2019-09-21 16:12:23 -07:00
uemis-downloader.c Cleanup: consider lseek return value 2019-10-27 07:35:46 -07:00
uemis.c Core: remove MAX_CYLINDERS restriction 2019-11-09 19:19:04 +01:00
uemis.h
units.c Fix broken windows build with latest MXE 2019-08-29 12:55:25 -07:00
units.h Fix broken windows build with latest MXE 2019-08-29 12:55:25 -07:00
unix.c Don't expose 'detach_buffer()' to membuffer users 2019-10-27 12:42:54 -07:00
version.c
version.h
videoframeextractor.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
videoframeextractor.h
webservice.h
windows.c Cleanup: move file-related function declarations to file.h 2019-08-08 16:26:31 -07:00
windowtitleupdate.cpp
windowtitleupdate.h
worldmap-options.h
worldmap-save.c Cleanup: move file-related function declarations to file.h 2019-08-08 16:26:31 -07:00
worldmap-save.h Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
xmp_parser.cpp Cleanup: use helper to avoid NULL dereference 2019-10-28 05:44:33 -07:00
xmp_parser.h