[LLDB][NFC][Correctness] Fix bad null check
Fix incorrect null-check logic, likely cause by copy-paste
Differential Revision: https://reviews.llvm.org/D130937
GitOrigin-RevId: 30b39111973798451397a1360dc7abc3e2490c84
diff --git a/source/Plugins/Process/POSIX/NativeProcessELF.cpp b/source/Plugins/Process/POSIX/NativeProcessELF.cpp
index cbaa1fc..fe64da8 100644
--- a/source/Plugins/Process/POSIX/NativeProcessELF.cpp
+++ b/source/Plugins/Process/POSIX/NativeProcessELF.cpp
@@ -161,7 +161,7 @@
GetAddressByteSize(), bytes_read);
if (!status.Success())
return status.ToError();
- if (address == 0)
+ if (link_map == 0)
return llvm::createStringError(llvm::inconvertibleErrorCode(),
"Invalid link_map address");