Skip to content

Commit a3888c8

Browse files
committed
Add a missing initialization in Patch::from_buffers.
Closes rust-lang#491
1 parent 1772541 commit a3888c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/patch.rs

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ impl Patch {
100100
new_path: Option<&Path>,
101101
opts: Option<&mut DiffOptions>,
102102
) -> Result<Patch, Error> {
103+
crate::init();
103104
let mut ret = ptr::null_mut();
104105
let old_path = into_opt_c_string(old_path)?;
105106
let new_path = into_opt_c_string(new_path)?;

0 commit comments

Comments
 (0)