Chack for a NULL pointer return in get_pool.

This commit is contained in:
david 2012-10-22 05:16:59 +00:00
parent 5fcc3bebd7
commit 5c8272b3c9

View file

@ -95,6 +95,7 @@ static nsock_pool get_pool (lua_State *L)
{
nsock_pool *nsp;
nsp = (nsock_pool *) lua_touserdata(L, NSOCK_POOL);
assert(nsp != NULL);
assert(*nsp != NULL);
return *nsp;
}