From 5a6aaec4906a68dac3ce6f845b939ade58be53ab Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 1 Oct 2015 20:43:30 -0400 Subject: Avoid possible uninitialized memory read Coverity CID 1325286 Signed-off-by: Dirk Hohndel --- configuredivecomputerthreads.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configuredivecomputerthreads.cpp') 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) { -- cgit v1.2.3-70-g09d2