mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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
This commit is contained in:
parent
0a7aa617d5
commit
fa52a0d094
1 changed files with 1 additions and 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);
|
||||
|
|
Loading…
Reference in a new issue