From 9c8c1c28028a849094cfbe368039227d888c18c6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 6 May 2008 20:43:36 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8277 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/languages/mod_lua/mod_lua.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/languages/mod_lua/mod_lua.c b/src/mod/languages/mod_lua/mod_lua.c index 6a97701604..97f66e52ae 100644 --- a/src/mod/languages/mod_lua/mod_lua.c +++ b/src/mod/languages/mod_lua/mod_lua.c @@ -165,7 +165,9 @@ static void lua_parse_and_execute(lua_State *L, char *input_code) if (error) { const char *err = lua_tostring(L, -1); - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s\n", switch_str_nil(err)); + if (!switch_strlen_zero(err)) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s\n", err); + } lua_pop(L, 1); /* pop error message from the stack */ } }