* thread.cc (verifyable_object_isvalid): Test for a valid object pointer before
testing for static ptr.
This commit is contained in:
parent
abb58a6d3f
commit
5d8c2b592d
@ -1,3 +1,8 @@
|
|||||||
|
2002-10-18 Thomas Pfaff <tpfaff@gmx.net>
|
||||||
|
|
||||||
|
* thread.cc (verifyable_object_isvalid): Test for a valid object
|
||||||
|
pointer before testing for static ptr.
|
||||||
|
|
||||||
2002-10-17 Christopher Faylor <cgf@redhat.com>
|
2002-10-17 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* dtable.cc (dtable::init_std_file_from_handle): Force "devices" to
|
* dtable.cc (dtable::init_std_file_from_handle): Force "devices" to
|
||||||
|
@ -1365,10 +1365,10 @@ verifyable_object_state
|
|||||||
verifyable_object_isvalid (void const * objectptr, long magic, void *static_ptr)
|
verifyable_object_isvalid (void const * objectptr, long magic, void *static_ptr)
|
||||||
{
|
{
|
||||||
verifyable_object **object = (verifyable_object **)objectptr;
|
verifyable_object **object = (verifyable_object **)objectptr;
|
||||||
if (static_ptr && *object == static_ptr)
|
|
||||||
return VALID_STATIC_OBJECT;
|
|
||||||
if (check_valid_pointer (object))
|
if (check_valid_pointer (object))
|
||||||
return INVALID_OBJECT;
|
return INVALID_OBJECT;
|
||||||
|
if (static_ptr && *object == static_ptr)
|
||||||
|
return VALID_STATIC_OBJECT;
|
||||||
if (!*object)
|
if (!*object)
|
||||||
return INVALID_OBJECT;
|
return INVALID_OBJECT;
|
||||||
if (check_valid_pointer (*object))
|
if (check_valid_pointer (*object))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user