diff options
author | Aaron Ecay <aaronecay@gmail.com> | 2011-07-25 19:38:58 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-09-10 15:19:51 -0300 |
commit | fa52a0d094a6585f36f484082fc3e28261718e72 (patch) | |
tree | 7a3061a39ebf7d5e912c9db3286b6233e1669552 /notmuch.c | |
parent | 0a7aa617d59a1c40efb0fa7726fb74bded9e240b (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |