Skip to content

Commit ab1b6b7

Browse files
authored
Merge pull request #494 from alexcrichton/more-init
Add a missing initialization in `Patch::from_buffers`.
2 parents 7f076f6 + a3888c8 commit ab1b6b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: 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)