diff --git a/arch/sim/src/sim/up_exit.c b/arch/sim/src/sim/up_exit.c index fada99a50d..4241e6025b 100644 --- a/arch/sim/src/sim/up_exit.c +++ b/arch/sim/src/sim/up_exit.c @@ -65,9 +65,9 @@ void up_exit(int status) { - FAR struct tcb_s *tcb = this_task(); + FAR struct tcb_s *tcb; - sinfo("TCB=%p exiting\n", tcb); + sinfo("TCB=%p exiting\n", this_task()); /* Destroy the task at the head of the ready to run list. */