From: Aaron Ecay Date: Mon, 25 Jul 2011 23:38:58 +0000 (-0400) Subject: Add missing call to g_type_init() X-Git-Tag: 0.9_rc1~34 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=fa52a0d094a6585f36f484082fc3e28261718e72 Add missing call to g_type_init() The Glib docs state "Prior to any use of the type system, g_type_init() has to be called".[1] To not do so can lead to segfaults. The g_type system is currently used by various "filters" that operate on uuencoded text, message headers, etc. [1] http://developer.gnome.org/gobject/2.28/gobject-Type-Information.html#g-type-init --- diff --git a/notmuch.c b/notmuch.c index 3973e350..f9d66297 100644 --- a/notmuch.c +++ b/notmuch.c @@ -579,6 +579,7 @@ main (int argc, char *argv[]) local = talloc_new (NULL); g_mime_init (0); + g_type_init (); if (argc == 1) return notmuch (local);