diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-10-02 15:42:43 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-02 15:42:43 -0400 |
commit | 6b0d9adb61472866d584a11b71ac1a71753c5ca6 (patch) | |
tree | 82304d7034df2967733a1983420b999bd21cc4e5 | |
parent | f09a3c33044164725f5a39dc36012f4ec95ad1a3 (diff) | |
download | subsurface-6b0d9adb61472866d584a11b71ac1a71753c5ca6.tar.gz |
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 <dirk@hohndel.org>
-rw-r--r-- | qt-ui/configuredivecomputerdialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |