mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-25 05:03:48 +01:00
Fix a segfault caused by moving into an uninitalized pointer
This commit is contained in:
parent
f79e73d669
commit
4489f710d8
@ -145,10 +145,9 @@ impl<'a, 'executor: 'a> Executor<'executor> {
|
||||
|
||||
// Wrap the future into one that stores the result into `out`.
|
||||
let future = {
|
||||
let out = out.as_mut_ptr();
|
||||
|
||||
let out: *mut R = out.as_mut_ptr();
|
||||
async move {
|
||||
*out = future.await;
|
||||
out.write(future.await);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user