From 920ffab9cccfe1a5dde0368d252ed50e5dbcd6a5 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 27 Aug 2022 21:21:07 -0700 Subject: [lldb] Use nullptr instead of NULL (NFC) Identified with modernize-use-nullptr. --- .../source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 7717f22..d530936 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -96,7 +96,7 @@ public: // Python's readline is incompatible with libedit being linked into lldb. // Provide a patched version local to the embedded interpreter. bool ReadlinePatched = false; - for (auto *p = PyImport_Inittab; p->name != NULL; p++) { + for (auto *p = PyImport_Inittab; p->name != nullptr; p++) { if (strcmp(p->name, "readline") == 0) { p->initfunc = initlldb_readline; break; -- cgit v1.1