Eliminate a bunch of shadow warnings.
[asterisk/asterisk.git] / pbx / pbx_lua.c
index d0e0f98..9288616 100644 (file)
@@ -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;