From bfc7bb7b9ace5194c186cbbd8b32d910edcc1f12 Mon Sep 17 00:00:00 2001 From: stoically Date: Thu, 17 Sep 2020 08:17:41 +0200 Subject: [PATCH] Init before creating Odb with new --- src/odb.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/odb.rs b/src/odb.rs index de3b42659a..7c53e41d26 100644 --- a/src/odb.rs +++ b/src/odb.rs @@ -41,6 +41,7 @@ impl<'repo> Drop for Odb<'repo> { impl<'repo> Odb<'repo> { /// Creates an object database without any backends. pub fn new<'a>() -> Result, Error> { + crate::init(); unsafe { let mut out = ptr::null_mut(); try_call!(raw::git_odb_new(&mut out));