diff options
Diffstat (limited to 'cpukit/libmisc/stackchk/check.c')
-rw-r--r-- | cpukit/libmisc/stackchk/check.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c index a2b63345d9..fa0c3ea1ed 100644 --- a/cpukit/libmisc/stackchk/check.c +++ b/cpukit/libmisc/stackchk/check.c @@ -410,6 +410,11 @@ static bool Stack_check_Dump_stack_usage( void *low; void *high_water_mark; + /* This is likely to occur if the stack checker is not actually enabled */ + if ( stack->area == NULL ) { + return false; + } + low = Stack_check_Usable_stack_start(stack); size = Stack_check_Usable_stack_size(stack); |