2002-10-17 Thomas Pfaff <tpfaff@gmx.net>
* thread.cc (verifyable_object_isvalid): Test for static object first.
This commit is contained in:
parent
d7c2dc62fd
commit
841cf30bc3
|
@ -1,3 +1,7 @@
|
|||
2002-10-17 Thomas Pfaff <tpfaff@gmx.net>
|
||||
|
||||
* thread.cc (verifyable_object_isvalid): Test for static object first.
|
||||
|
||||
2002-10-16 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* fhandler_tty.cc (fhandler_tty_slave::read): Attempt #527 to properly
|
||||
|
|
|
@ -1356,12 +1356,12 @@ verifyable_object_state
|
|||
verifyable_object_isvalid (void const * objectptr, long magic, void *static_ptr)
|
||||
{
|
||||
verifyable_object **object = (verifyable_object **)objectptr;
|
||||
if (static_ptr && *object == static_ptr)
|
||||
return VALID_STATIC_OBJECT;
|
||||
if (check_valid_pointer (object))
|
||||
return INVALID_OBJECT;
|
||||
if (!*object)
|
||||
return INVALID_OBJECT;
|
||||
if (static_ptr && *object == static_ptr)
|
||||
return VALID_STATIC_OBJECT;
|
||||
if (check_valid_pointer (*object))
|
||||
return INVALID_OBJECT;
|
||||
if ((*object)->magic != magic)
|
||||
|
|
Loading…
Reference in New Issue