From 291b2446f19209be20c4b7fb7587da44330429fd 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 7c21859d..2ab658bb 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