summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/stackchk/check.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpukit/libmisc/stackchk/check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index c0f1cca992..896375e85c 100644
--- a/cpukit/libmisc/stackchk/check.c
+++ b/cpukit/libmisc/stackchk/check.c
@@ -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 {