Skip to content

Commit

Permalink
Fix Copy & Paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
VlkrS authored Oct 28, 2024
1 parent f83744d commit b9cf22b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/node/ops/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ where
let mut result: libc::statfs64 = std::mem::zeroed();
(libc::statfs64(cpath.as_ptr() as _, &mut result), result)
};
#[cfg(not(any(
#[cfg(any(
target_os = "macos",
target_os = "freebsd",
target_os = "openbsd"
)))]
))]
// SAFETY: `cpath` is NUL-terminated and result is pointer to valid statfs memory.
let (code, result) = unsafe {
let mut result: libc::statfs = std::mem::zeroed();
Expand Down

0 comments on commit b9cf22b

Please sign in to comment.