From f27a7c5d00fa4b5c965d1ec47e4a69285081909a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 17 Apr 2023 18:37:17 +0200 Subject: [PATCH] Use nullptr instead of NULL in Unix wxStackWalker code Another place which should have been updated in 4f4c5fcfdf (Use nullptr instead of NULL in the code and documentation, 2022-10-16) but wasn't. --- src/unix/stackwalk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix/stackwalk.cpp b/src/unix/stackwalk.cpp index 95a0dfdd59..99dac840cb 100644 --- a/src/unix/stackwalk.cpp +++ b/src/unix/stackwalk.cpp @@ -308,7 +308,7 @@ struct ModuleInfo { } - // Name of the file containing this address, may be NULL. + // Name of the file containing this address, may be null. const char* name; // Difference between the address in the file and in memory. @@ -322,7 +322,7 @@ ModuleInfo GetModuleInfoFromAddr(void* addr) if ( !dladdr1(addr, &info, (void**)&lm, RTLD_DL_LINKMAP) ) { // Probably not worth spamming the user with even debug errors. - return ModuleInfo(NULL, 0); + return ModuleInfo(nullptr, 0); } return ModuleInfo(info.dli_fname, lm->l_addr);