Fix uninitialized variable warning
This commit is contained in:
parent
5413150c67
commit
67795a08ab
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue