aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
diff options
context:
space:
mode:
authorGravatar Aaron Ecay <aaronecay@gmail.com>2011-07-25 19:38:58 -0400
committerGravatar David Bremner <bremner@debian.org>2011-09-10 15:19:51 -0300
commitfa52a0d094a6585f36f484082fc3e28261718e72 (patch)
tree7a3061a39ebf7d5e912c9db3286b6233e1669552 /notmuch.c
parent0a7aa617d59a1c40efb0fa7726fb74bded9e240b (diff)
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
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c1
1 files changed, 1 insertions, 0 deletions
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);