From be494adb30ec76e1b6738b8bfc22040bfc31ce98 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 23 Jun 2020 14:17:08 -0700 Subject: [PATCH] [lldb/Lua] Fix typo: s/stdout/stderr/ This wasn't caught by the existing test, but will be covered by the extended test that's part of D82412. --- lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp b/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp index 4c3cde9a11ec..acd6128d84c5 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp @@ -75,7 +75,7 @@ llvm::Error Lua::ChangeIO(FILE *out, FILE *err) { llvm::inconvertibleErrorCode()); } - lua_getfield(m_lua_state, -1, "stdout"); + lua_getfield(m_lua_state, -1, "stderr"); if (luaL_Stream *s = static_cast( luaL_testudata(m_lua_state, -1, LUA_FILEHANDLE))) { s->f = out;