Skip to content

Commit d2a0ab2

Browse files
committed
Merge branch 'add_localtime_r_shim' of https://github.com/tiif/miri into add_localtime_r_shim
2 parents 0110b9a + ba5c349 commit d2a0ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
164164
// FIXME: String de-duplication is needed so that we only allocate this string only once
165165
// even when there are multiple calls to this function.
166166
let tm_zone_ptr = this.alloc_os_str_as_c_str(
167-
OsString::from(tm_zone).as_os_str(),
167+
&OsString::from(tm_zone),
168168
MiriMemoryKind::Machine.into(),
169169
)?;
170170

0 commit comments

Comments
 (0)