Skip to content

Commit

Permalink
Fix profiler crash by builtin since eea1fda (#8239)
Browse files Browse the repository at this point in the history
Default to '??' (common Minetest notation) for unknown mods.
  • Loading branch information
p-ouellette authored and SmallJoker committed Feb 16, 2019
1 parent 568540f commit 291b244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/profiler/instrumentation.lua
Expand Up @@ -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
Expand Down

0 comments on commit 291b244

Please sign in to comment.