Skip to content

Commit

Permalink
Merge pull request #182 from jbaublitz/ownership-bug
Browse files Browse the repository at this point in the history
Fix ownership bug in get_cache
  • Loading branch information
jbaublitz authored Jan 17, 2025
2 parents 691cd39 + d572752 commit abdef0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ impl BlkidCache {
libblkid_rs_sys::blkid_get_cache(
&mut cache as *mut _,
filename_cstring
.as_ref()
.map(|s| s.as_ptr())
.unwrap_or(ptr::null_mut()),
)
Expand Down

0 comments on commit abdef0b

Please sign in to comment.