From 7aa851f622a077ed47b6dd14a9ad0ff999e6a5bf Mon Sep 17 00:00:00 2001 From: Paul Ouellette Date: Sat, 16 Feb 2019 15:06:04 -0500 Subject: [PATCH] Fix profiler crash by builtin since eea1fda (#8239) Default to '??' (common Minetest notation) for unknown mods. --- builtin/profiler/instrumentation.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/profiler/instrumentation.lua b/builtin/profiler/instrumentation.lua index 7c21859..2ab658b 100644 --- a/builtin/profiler/instrumentation.lua +++ b/builtin/profiler/instrumentation.lua @@ -88,7 +88,7 @@ local function instrument(def) if not def or not def.func then return end - def.mod = def.mod or get_current_modname() + def.mod = def.mod or get_current_modname() or "??" local modname = def.mod local instrument_name = generate_name(def) local func = def.func