Skip to content

Commit

Permalink
mutname
Browse files Browse the repository at this point in the history
  • Loading branch information
biabbas committed Aug 7, 2024
1 parent 1f1dbb5 commit 0e5b18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/unix/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl Thread {
if let Some(f) = taskNameSet.get() {
const VX_TASK_NAME_LEN: usize = 10;

let name = truncate_cstr::<{ VX_TASK_NAME_LEN }>(name);
let mut name = truncate_cstr::<{ VX_TASK_NAME_LEN }>(name);
let status = unsafe { f(libc::taskIdSelf(), name.as_mut_ptr()) };
debug_assert_eq!(status, libc::OK);
}
Expand Down

0 comments on commit 0e5b18a

Please sign in to comment.