From 32bc0fcf69dfccb3726fe572833a38b01179580e Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Thu, 2 Aug 2018 17:31:13 -0700 Subject: Modernize codebase by replacing NULL with nullptr Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I5b4123bc6709641315120a191e36cc57541349b2 --- libc/malloc_debug/malloc_debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/malloc_debug/malloc_debug.cpp') diff --git a/libc/malloc_debug/malloc_debug.cpp b/libc/malloc_debug/malloc_debug.cpp index 2e3a0a333..9075a9caa 100644 --- a/libc/malloc_debug/malloc_debug.cpp +++ b/libc/malloc_debug/malloc_debug.cpp @@ -284,7 +284,7 @@ void debug_get_malloc_leak_info(uint8_t** info, size_t* overall_size, size_t* in ScopedDisableDebugCalls disable; // Verify the arguments. - if (info == nullptr || overall_size == nullptr || info_size == NULL || total_memory == nullptr || + if (info == nullptr || overall_size == nullptr || info_size == nullptr || total_memory == nullptr || backtrace_size == nullptr) { error_log("get_malloc_leak_info: At least one invalid parameter."); return; -- cgit v1.2.3