[Freeswitch-svn] [commit] r8230 - freeswitch/trunk/src/mod/languages/mod_lua

Freeswitch SVN brian at freeswitch.org
Wed Apr 30 22:33:08 EDT 2008


Author: brian
Date: Wed Apr 30 22:33:07 2008
New Revision: 8230

Modified:
   freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c

Log:
fix compile on gcc 4.1.2 not sure this is correct but looks like it

Modified: freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c	Wed Apr 30 22:33:07 2008
@@ -96,6 +96,8 @@
 static lua_State *lua_init(void) 
 {
 	lua_State *L = lua_open();
+	int error = 0;
+
 	if (L) {
 		const char *buff = "os.exit = function() freeswitch.consoleLog(\"err\", \"Surely you jest! exiting is a bad plan....\\n\") end";
 		lua_gc(L, LUA_GCSTOP, 0);
@@ -103,7 +105,7 @@
 		luaopen_freeswitch(L);
 		lua_gc(L, LUA_GCRESTART, 0);
 		lua_atpanic(L, panic);
-		luaL_loadbuffer(L, buff, strlen(buff), "line") || docall(L, 0, 1);
+		error = luaL_loadbuffer(L, buff, strlen(buff), "line") || docall(L, 0, 1);
  	}
 	return L;
 }



More information about the Freeswitch-svn mailing list