forked from Imagelibrary/rtems
2003-01-27 Dan Smisko <dan@balanced.com>
* stackchk/check.c: Fix problem where _Objects_Get_information() will dereference a null pointer when checking the interrupt stack. If there's something at 0, you may be ok at run time but it is wrong.
This commit is contained in:
@@ -454,9 +454,9 @@ void Stack_check_Dump_threads_usage(
|
||||
else
|
||||
used = 0;
|
||||
|
||||
info = _Objects_Get_information(the_thread->Object.id);
|
||||
name = name_str;
|
||||
if ( the_thread ) {
|
||||
info = _Objects_Get_information(the_thread->Object.id);
|
||||
if ( info->is_string ) {
|
||||
name = (char *) the_thread->Object.name;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user