summaryrefslogtreecommitdiff
path: root/supervisor/shared/stack.c
diff options
context:
space:
mode:
authorJuan Biondi <juanernestobiondi@gmail.com>2019-01-10 17:21:30 +0100
committerGitHub <noreply@github.com>2019-01-10 17:21:30 +0100
commita6e0ea3e23d196e8e5f104f2392a01d4891d600e (patch)
tree8e6660c17654b886eab0db1f09e1f38df2dc8ba2 /supervisor/shared/stack.c
parent749b2b0aacffb0dc3445699ef5251cee723160ff (diff)
parentdabb8ffdaa46ae84d0cdbd00511da9300a4dc8df (diff)
Merge pull request #3 from adafruit/master
Add latest changes on repo
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) {