Skip to content

Commit 8b497f5

Browse files
authored
change: delete useless code for get old_cpath. (openresty#2000)
1 parent ce8405c commit 8b497f5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/ngx_http_lua_util.c

-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ ngx_http_lua_new_state(lua_State *parent_vm, ngx_cycle_t *cycle,
281281

282282
lua_pushliteral(L, LUA_DEFAULT_CPATH ";"); /* package default */
283283
lua_getfield(L, -2, "cpath"); /* package default old */
284-
old_cpath = lua_tolstring(L, -1, &old_cpath_len);
285284
lua_concat(L, 2); /* package new */
286285
lua_setfield(L, -2, "cpath"); /* package */
287286
#endif

0 commit comments

Comments
 (0)