From f8744d12c228d91342cc55d0986df7ac86290818 Mon Sep 17 00:00:00 2001 From: Giovanni <561184+wargio@users.noreply.github.com> Date: Thu, 31 Mar 2022 19:34:34 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=98memDisp=E2=80=99=20may=20be=20used=20u?= =?UTF-8?q?ninitialized=20(#2920)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/menus/DisassemblyContextMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menus/DisassemblyContextMenu.cpp b/src/menus/DisassemblyContextMenu.cpp index c2065c9d..15e23f8c 100644 --- a/src/menus/DisassemblyContextMenu.cpp +++ b/src/menus/DisassemblyContextMenu.cpp @@ -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"]) {