From 6b0d9adb61472866d584a11b71ac1a71753c5ca6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 2 Oct 2015 15:42:43 -0400 Subject: Avoid potential uninitialized access I don't think this could ever happen but hey, let's be sure. Coverity CID 1307985 Signed-off-by: Dirk Hohndel --- qt-ui/configuredivecomputerdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-ui/configuredivecomputerdialog.cpp') diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp index 560d0c28f..7afb3f4bd 100644 --- a/qt-ui/configuredivecomputerdialog.cpp +++ b/qt-ui/configuredivecomputerdialog.cpp @@ -213,9 +213,10 @@ ConfigureDiveComputerDialog::ConfigureDiveComputerDialog(QWidget *parent) : QDia settings.endGroup(); } -OstcFirmwareCheck::OstcFirmwareCheck(QString product) +OstcFirmwareCheck::OstcFirmwareCheck(QString product) : parent(0) { QUrl url; + memset(&devData, 1, sizeof(devData)); if (product == "OSTC 3") { url = QUrl("http://www.heinrichsweikamp.net/autofirmware/ostc3_changelog.txt"); latestFirmwareHexFile = QString("http://www.heinrichsweikamp.net/autofirmware/ostc3_firmware.hex"); -- cgit v1.2.3-70-g09d2