We want to make sure g_type_init is called before any GObject
functionality is used.
#include <signal.h>
#include <glib.h> /* g_free, GPtrArray, GHashTable */
+#include <glib-object.h> /* g_type_init */
using namespace std;
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);