mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 00:18:02 +03:00
Fix nullability warnings by initializing fields in constructors
This commit is contained in:
@ -140,9 +140,9 @@ namespace X86Disassembler.PE.Parsers
|
||||
function.Address = functionRVA;
|
||||
|
||||
// Check if this function has a name
|
||||
if (ordinalToName.TryGetValue(i, out string name))
|
||||
if (ordinalToName.TryGetValue(i, out string? name))
|
||||
{
|
||||
function.Name = name;
|
||||
function.Name = name ?? $"Ordinal_{function.Ordinal}";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user