mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
Fix assertion: user->next may be NULL, so there's no point asserting that it isn't
svn path=/trunk/netsurf/; revision=11046
This commit is contained in:
parent
d9f8b8949e
commit
702c94bb30
@ -1184,8 +1184,7 @@ nserror llcache_object_remove_user(llcache_object *object,
|
|||||||
{
|
{
|
||||||
assert(object->users != NULL);
|
assert(object->users != NULL);
|
||||||
assert(user->handle.object == object);
|
assert(user->handle.object == object);
|
||||||
assert((user->next != NULL) || (user->prev != NULL) ||
|
assert((user->prev != NULL) || (object->users == user));
|
||||||
(object->users == user));
|
|
||||||
|
|
||||||
if (user == object->users)
|
if (user == object->users)
|
||||||
object->users = user->next;
|
object->users = user->next;
|
||||||
|
Loading…
Reference in New Issue
Block a user