1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00

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(); settings.endGroup();
} }
OstcFirmwareCheck::OstcFirmwareCheck(QString product) OstcFirmwareCheck::OstcFirmwareCheck(QString product) : parent(0)
{ {
QUrl url; QUrl url;
memset(&devData, 1, sizeof(devData));
if (product == "OSTC 3") { if (product == "OSTC 3") {
url = QUrl("http://www.heinrichsweikamp.net/autofirmware/ostc3_changelog.txt"); url = QUrl("http://www.heinrichsweikamp.net/autofirmware/ostc3_changelog.txt");
latestFirmwareHexFile = QString("http://www.heinrichsweikamp.net/autofirmware/ostc3_firmware.hex"); latestFirmwareHexFile = QString("http://www.heinrichsweikamp.net/autofirmware/ostc3_firmware.hex");