X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=98f101e6e617a04e9b6c26213f7e35a03dd5c0c3;hb=69dc421ab3355930f23ec6aa47e7e936cbfafb97;hp=e4ef14e0c1ee7d7a748e9116de5a20a11e035860;hpb=567bcbc294b3aed632d18eb22056840292bdeb1e;p=obsolete%2Fnotmuch-old diff --git a/lib/database.cc b/lib/database.cc index e4ef14e0..98f101e6 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -26,6 +26,7 @@ #include #include /* g_free, GPtrArray, GHashTable */ +#include /* g_type_init */ using namespace std; @@ -600,6 +601,9 @@ notmuch_database_open (const char *path, goto DONE; } + /* Initialize the GLib type system and threads */ + g_type_init (); + notmuch = talloc (NULL, notmuch_database_t); notmuch->exception_reported = FALSE; notmuch->path = talloc_strdup (notmuch, path);