diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-02-02 11:27:12 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-02-07 09:39:42 +0300 |
commit | abba1020f41cf684b850b95a1c96e2007959fe80 (patch) | |
tree | 41f4352e39016d228984b33e972c1f4aec285811 /src/debug_utils.cc | |
parent | b8d9d4ac68be5b95747a77b7f8bbdd62db379931 (diff) |
src: refactor to nullptr in cpp code
Signed-off-by: gengjiawen <technicalcute@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/25888
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src/debug_utils.cc')
-rw-r--r-- | src/debug_utils.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug_utils.cc b/src/debug_utils.cc index 434c9853c02..fadcaa50619 100644 --- a/src/debug_utils.cc +++ b/src/debug_utils.cc @@ -66,7 +66,8 @@ class PosixSymbolDebuggingContext final : public NativeSymbolDebuggingContext { return ret; if (info.dli_sname != nullptr) { - if (char* demangled = abi::__cxa_demangle(info.dli_sname, 0, 0, 0)) { + if (char* demangled = + abi::__cxa_demangle(info.dli_sname, nullptr, nullptr, nullptr)) { ret.name = demangled; free(demangled); } else { |