‘memDisp’ may be used uninitialized (#2920)

This commit is contained in:
Giovanni 2022-03-31 19:34:34 +02:00 committed by GitHub
parent 62d75c9391
commit e3a01d3780
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -489,7 +489,7 @@ void DisassemblyContextMenu::aboutToShowSlot()
// Create structure offset menu if it makes sense
QString memBaseReg; // Base register
st64 memDisp; // Displacement
st64 memDisp = 0; // Displacement
// Loop through both the operands of the instruction
for (const CutterJson operand : instObject["opex"]["operands"]) {