summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rts/Schedule.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/rts/Schedule.c b/rts/Schedule.c
index d104cfd23d..54ebb43eef 100644
--- a/rts/Schedule.c
+++ b/rts/Schedule.c
@@ -2649,9 +2649,7 @@ void
exitScheduler (bool wait_foreign USED_IF_THREADS)
/* see Capability.c, shutdownCapability() */
{
- Task *task = NULL;
-
- task = newBoundTask();
+ Task *task = newBoundTask();
// If we haven't killed all the threads yet, do it now.
if (sched_state < SCHED_SHUTTING_DOWN) {