summaryrefslogtreecommitdiffstats
path: root/configuredivecomputerthreads.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-01 20:43:30 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-01 21:11:43 -0400
commit5a6aaec4906a68dac3ce6f845b939ade58be53ab (patch)
tree61c5b45a97d04cfd785869962708043aeba2bad2 /configuredivecomputerthreads.cpp
parentb41773734bdfa60c889c1ba01904a9c03a130d3c (diff)
downloadsubsurface-5a6aaec4906a68dac3ce6f845b939ade58be53ab.tar.gz
Avoid possible uninitialized memory read
Coverity CID 1325286 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'configuredivecomputerthreads.cpp')
-rw-r--r--configuredivecomputerthreads.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp
index ae8305585..78edcb37c 100644
--- a/configuredivecomputerthreads.cpp
+++ b/configuredivecomputerthreads.cpp
@@ -1746,7 +1746,7 @@ ResetSettingsThread::ResetSettingsThread(QObject *parent, device_data_t *data) :
void ResetSettingsThread::run()
{
- dc_status_t rc;
+ dc_status_t rc = DC_STATUS_SUCCESS;
#if DC_VERSION_CHECK(0, 5, 0)
if (dc_device_get_type(m_data->device) == DC_FAMILY_HW_OSTC3) {