summaryrefslogtreecommitdiff
path: root/supervisor/shared/stack.c
diff options
context:
space:
mode:
authorhathach <thach@tinyusb.org>2019-01-09 20:39:35 +0700
committerhathach <thach@tinyusb.org>2019-01-09 20:39:35 +0700
commitf366e3feea69147bd9e2dfb723ef7b0801352dc3 (patch)
tree94ef6804188e3f04944e5eae069e6e40b2078944 /supervisor/shared/stack.c
parentcfc4c8cbfa8c6f197aaa3da3e78cfdcced06619a (diff)
parent172311fad896fdb0780bdd6597b0b6d4d8bdadd3 (diff)
Merge branch 'master' into nrf52_pulsein
Diffstat (limited to 'supervisor/shared/stack.c')
-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) {