From 5b05237245fcf0799ea44ebbcb20327f63978a66 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Thu, 6 Nov 2014 15:10:32 +0200 Subject: [PATCH] lua-bindings: fix Lua debug record short_src check. --- src/core/lua-bindings/lua-murphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lua-bindings/lua-murphy.c b/src/core/lua-bindings/lua-murphy.c index 5ff3016..d169d26 100644 --- a/src/core/lua-bindings/lua-murphy.c +++ b/src/core/lua-bindings/lua-murphy.c @@ -356,7 +356,7 @@ static void lua_debug(lua_State *L, lua_Debug *ar) name = f.name ? f.name : NULL; - if (f.currentline != -1 && f.short_src != NULL) + if (f.currentline != -1 && f.short_src[0]) snprintf(loc, sizeof(loc), "@ %s:%d", f.short_src, f.currentline); else -- 2.7.4