Commit be5c27fe authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

lua: do not push uninitialized values on poll() error

parent 000feece
......@@ -367,7 +367,7 @@ static int vlclua_net_poll( lua_State *L )
for( int i = 0; i < i_fds; i++ )
{
lua_pushinteger( L, luafds[i] );
lua_pushinteger( L, p_fds[i].revents );
lua_pushinteger( L, (val >= 0) ? p_fds[i].revents : 0 );
lua_settable( L, 1 );
}
lua_pushinteger( L, val );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment