Modernize codebase by replacing NULL with nullptr
Fixes -Wzero-as-null-pointer-constant warning.
Test: m
Bug: 68236239
Change-Id: I5b4123bc6709641315120a191e36cc57541349b2
diff --git a/linker/linker.cpp b/linker/linker.cpp
index cfa8c8f..94c318c 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -3486,11 +3486,11 @@
"(new hash type from the future?)", get_realpath());
return false;
}
- if (strtab_ == 0) {
+ if (strtab_ == nullptr) {
DL_ERR("empty/missing DT_STRTAB in \"%s\"", get_realpath());
return false;
}
- if (symtab_ == 0) {
+ if (symtab_ == nullptr) {
DL_ERR("empty/missing DT_SYMTAB in \"%s\"", get_realpath());
return false;
}