diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-07-16 05:04:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-07-16 05:07:03 +0300 |
commit | e26887598f6d8b72cff574aace14002f9110b51a (patch) | |
tree | d14db4c217a13138ee66757d3225bd3674325838 /source/blender | |
parent | 42017b006efef2626482304eb9ecd82e047a8426 (diff) |
Fix error using uninitialized state in BLI_task_parallel_mempool
Single threaded operation used the state before it had variables
written into it.
Error in 15cdcb4e9085c3cf35528c2f7e559955b4ff531a.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/intern/task_iterator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/task_iterator.c b/source/blender/blenlib/intern/task_iterator.c index 33af4894b48..e9d63c6a4ea 100644 --- a/source/blender/blenlib/intern/task_iterator.c +++ b/source/blender/blenlib/intern/task_iterator.c @@ -429,7 +429,7 @@ void BLI_task_parallel_mempool(BLI_mempool *mempool, userdata_chunk_local = MALLOCA(userdata_chunk_size); memcpy(userdata_chunk_local, userdata_chunk, userdata_chunk_size); if (settings->func_init != NULL) { - settings->func_init(state.userdata, userdata_chunk_local); + settings->func_init(userdata, userdata_chunk_local); } tls.userdata_chunk = userdata_chunk_local; } |