aboutsummaryrefslogtreecommitdiff
path: root/notmuch.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-05-12 20:22:18 -0300
committerDavid Bremner <david@tethera.net>2021-05-14 06:40:37 -0300
commit5a8d174f6797844580b52857a6254c25ce532d1c (patch)
tree202442b6ba8d8d52058e202f8ed8457f06457390 /notmuch.c
parentb1b679858868d1a004b67a1a6eccb6c9d3f755e9 (diff)
CLI: centralize initialization in notmuch_client_init
Initially make sure gmime_filter_reply initialization is thread-safe (assuming notmuch_client_init is only called once). For tidyness, also put talloc initialization in the new function.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/notmuch.c b/notmuch.c
index 2429999c..9ca3a4be 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -464,15 +464,10 @@ main (int argc, char *argv[])
{ }
};
- talloc_enable_null_tracking ();
+ notmuch_client_init ();
local = talloc_new (NULL);
- g_mime_init ();
-#if ! GLIB_CHECK_VERSION (2, 35, 1)
- g_type_init ();
-#endif
-
/* Globally default to the current output format version. */
notmuch_format_version = NOTMUCH_FORMAT_CUR;