summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/configuredivecomputerdialog.cpp3
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");