Commit cb8a8936 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

lua/api: ensure the function name in the debug output is non-null

NULL crashes the journald writer
parent 98151fdb
......@@ -183,6 +183,7 @@ log_log (lua_State *L, GLogLevelFlags lvl)
message = luaL_checkstring (L, index);
sprintf (line_str, "%d", ar.currentline); = ? : "chunk";
wp_log_structured_standard (G_LOG_DOMAIN, lvl,
ar.source, line_str,, type, instance, "%s", message);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment