Skip to content

Commit f51bb4e

Browse files
committed
Fix unsafe_op_in_unsafe_fn for TEEOS
1 parent 118bb74 commit f51bb4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/pal/teeos/thread.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Thread {
5656
}
5757
};
5858

59-
let ret = libc::pthread_create(&mut native, &attr, thread_start, p as *mut _);
59+
let ret = unsafe { libc::pthread_create(&mut native, &attr, thread_start, p as *mut _) };
6060
// Note: if the thread creation fails and this assert fails, then p will
6161
// be leaked. However, an alternative design could cause double-free
6262
// which is clearly worse.

0 commit comments

Comments
 (0)