diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2018-12-07 23:25:53 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-12-07 23:26:02 -0500 |
commit | 64ef4d7fb131f04769c6cab331af335bd87103ec (patch) | |
tree | 83bb59d0764252078dd0ca0d3bc490c179b3e7bc /rts | |
parent | aa619f39e39b09b6da4585b40413adcf9d54fe46 (diff) | |
download | haskell-64ef4d7fb131f04769c6cab331af335bd87103ec.tar.gz |
rts: Ensure that task->id is initialized
Reviewers: erikd, simonmar
Reviewed By: simonmar
Subscribers: rwbarton, carter
Differential Revision: https://phabricator.haskell.org/D5325
Diffstat (limited to 'rts')
-rw-r--r-- | rts/Task.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/Task.c b/rts/Task.c index ac86311844..11ba5f1581 100644 --- a/rts/Task.c +++ b/rts/Task.c @@ -220,6 +220,7 @@ newTask (bool worker) #if defined(THREADED_RTS) initCondition(&task->cond); initMutex(&task->lock); + task->id = 0; task->wakeup = false; task->node = 0; #endif |