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. --- lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp index 2753847f..3cbd3b5 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp @@ -40,7 +40,7 @@ static char *simple_readline(FILE *stdin, FILE *stdout, const char *prompt) { char *line = readline(prompt); if (!line) { char *ret = (char *)PyMem_RawMalloc(1); - if (ret != NULL) + if (ret != nullptr) *ret = '\0'; return ret; } -- cgit v1.1