Fix uninitialized variable warning

This commit is contained in:
Shubham Jangra 2019-06-07 09:39:29 +05:30
parent 5413150c67
commit 67795a08ab
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ bool SfdiskBackend::updateDevicePartitionTable(Device &d, const QJsonObject &jso
const PartitionTable::TableType type = PartitionTable::nameToTableType(tableType); const PartitionTable::TableType type = PartitionTable::nameToTableType(tableType);
qint64 firstUsableSector = 0; qint64 firstUsableSector = 0;
qint64 lastUsableSector; qint64 lastUsableSector = 0;
if (d.type() == Device::Type::Disk_Device) { if (d.type() == Device::Type::Disk_Device) {
const DiskDevice* diskDevice = static_cast<const DiskDevice*>(&d); const DiskDevice* diskDevice = static_cast<const DiskDevice*>(&d);