Skip to content

Commit 1774e57

Browse files
committed
Call init in Indexer::new
Otherwise calling `Indexer::new` as the first thing in the program will result in "no error" errors.
1 parent 5bc3baa commit 1774e57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/indexer.rs

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ impl<'a> Indexer<'a> {
122122
///
123123
/// If `verify` is `false`, the indexer will bypass object connectivity checks.
124124
pub fn new(odb: Option<&Odb<'a>>, path: &Path, mode: u32, verify: bool) -> Result<Self, Error> {
125+
crate::init();
125126
let path = path.into_c_string()?;
126127

127128
let odb = odb.map(Binding::raw).unwrap_or_else(ptr::null_mut);

0 commit comments

Comments
 (0)