aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-08-27 21:21:07 -0700
committerKazu Hirata <kazu@google.com>2022-08-27 21:21:07 -0700
commit920ffab9cccfe1a5dde0368d252ed50e5dbcd6a5 (patch)
tree71b5e956b39f848a5618ae0d1fef05ce4d946cb8 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent0660249cca89208f042b13913bf0bb5485527ec1 (diff)
downloadllvm-920ffab9cccfe1a5dde0368d252ed50e5dbcd6a5.zip
llvm-920ffab9cccfe1a5dde0368d252ed50e5dbcd6a5.tar.gz
llvm-920ffab9cccfe1a5dde0368d252ed50e5dbcd6a5.tar.bz2
[lldb] Use nullptr instead of NULL (NFC)
Identified with modernize-use-nullptr.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp2
1 files changed, 1 insertions, 1 deletions
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;