diff --git a/src/patch.rs b/src/patch.rs index 65cff4704b..cda09efe72 100644 --- a/src/patch.rs +++ b/src/patch.rs @@ -100,6 +100,7 @@ impl Patch { new_path: Option<&Path>, opts: Option<&mut DiffOptions>, ) -> Result { + crate::init(); let mut ret = ptr::null_mut(); let old_path = into_opt_c_string(old_path)?; let new_path = into_opt_c_string(new_path)?;