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>
This commit is contained in:
Dirk Hohndel 2015-10-02 15:42:43 -04:00
parent f09a3c3304
commit 6b0d9adb61

View file

@ -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");