diff --git a/sched/pthread/pthread_cancel.c b/sched/pthread/pthread_cancel.c index 5b6fa04db82..b8f89ead30d 100644 --- a/sched/pthread/pthread_cancel.c +++ b/sched/pthread/pthread_cancel.c @@ -77,7 +77,7 @@ int pthread_cancel(pthread_t thread) return ESRCH; } - DEBUGASSERT((tcb-cmn.flags & TCB_FLAG_TTYPE_MASK) == TCB_FLAG_TTYPE_PTHREAD); + DEBUGASSERT((tcb->cmn.flags & TCB_FLAG_TTYPE_MASK) == TCB_FLAG_TTYPE_PTHREAD); /* Check to see if this thread has the non-cancelable bit set in its * flags. Suppress context changes for a bit so that the flags are stable.