summaryrefslogtreecommitdiff
path: root/pbx/pbx_lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbx/pbx_lua.c')
-rw-r--r--pbx/pbx_lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_lua.c b/pbx/pbx_lua.c
index d0e0f984b..928861698 100644
--- a/pbx/pbx_lua.c
+++ b/pbx/pbx_lua.c
@@ -1257,7 +1257,7 @@ static lua_State *lua_get_state(struct ast_channel *chan)
lua_State *L;
if (!chan) {
- lua_State *L = luaL_newstate();
+ L = luaL_newstate();
if (!L) {
ast_log(LOG_ERROR, "Error allocating lua_State, no memory\n");
return NULL;