Fix uninitialized variables

... as found by valgrind
This commit is contained in:
Pasi Kallinen
2022-03-02 13:29:20 +02:00
parent 23d09e6678
commit 13d85abde5
3 changed files with 4 additions and 3 deletions

View File

@@ -4095,6 +4095,7 @@ lspo_trap(lua_State *L)
create_des_coder();
tmptrap.spider_on_web = TRUE;
tmptrap.seen = FALSE;
if (argc == 1 && lua_type(L, 1) == LUA_TSTRING) {
const char *trapstr = luaL_checkstring(L, 1);