summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
Diffstat (limited to 'supervisor')
-rwxr-xr-xsupervisor/shared/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/supervisor/shared/stack.c b/supervisor/shared/stack.c
index 71e239c0a..311fa31b2 100755
--- a/supervisor/shared/stack.c
+++ b/supervisor/shared/stack.c
@@ -56,7 +56,7 @@ void allocate_stack(void) {
}
inline bool stack_ok(void) {
- return *stack_alloc->ptr == STACK_CANARY_VALUE;
+ return stack_alloc == NULL || *stack_alloc->ptr == STACK_CANARY_VALUE;
}
inline void assert_heap_ok(void) {