Add an assert to clarify a segfault I'm investigating

svn path=/trunk/netsurf/; revision=10303
This commit is contained in:
Daniel Silverstone 2010-04-08 13:12:30 +00:00
parent 5c55264217
commit 92bd0d4ce0

View File

@ -1022,6 +1022,8 @@ nserror llcache_object_add_user(llcache_object *object,
nserror llcache_object_remove_user(llcache_object *object,
llcache_object_user *user)
{
assert(object->users);
if (user == object->users)
object->users = user->next;
else