From: Tollef Fog Heen Date: Wed, 7 Mar 2012 07:12:32 +0000 (+0100) Subject: Add g_type_init calls X-Git-Tag: 0.7~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e750bad54ae21d74b42926a31dd2528964586ba6;p=eweouz Add g_type_init calls --- diff --git a/debian/changelog b/debian/changelog index 9ef3b59..7190e74 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +eweouz (0.7) UNRELEASED; urgency=low + + * Add g_type_init calls to the C utilities, to make them stop + segfaulting. Apparently the e-d-s libraries require that now. + Closes: #662885 + + -- Tollef Fog Heen Wed, 07 Mar 2012 08:10:49 +0100 + eweouz (0.6) unstable; urgency=low * Make it possible to cycle through the returned addresses if more than diff --git a/src/eweouz-dump-addressbook.c b/src/eweouz-dump-addressbook.c index 94d81f9..2f6dea9 100644 --- a/src/eweouz-dump-addressbook.c +++ b/src/eweouz-dump-addressbook.c @@ -72,6 +72,7 @@ int main(int argc, char **argv) setlocale (LC_ALL, ""); + g_type_init(); optioncontext = g_option_context_new ("- whack address book"); g_option_context_add_main_entries (optioncontext, entries, NULL); g_option_context_parse (optioncontext, &argc, &argv, &error); diff --git a/src/eweouz-write-addressbook.c b/src/eweouz-write-addressbook.c index 58bffbe..c3da261 100644 --- a/src/eweouz-write-addressbook.c +++ b/src/eweouz-write-addressbook.c @@ -49,6 +49,8 @@ int main(int argc, char **argv) setlocale (LC_ALL, ""); + g_type_init(); + optioncontext = g_option_context_new ("- whack address book"); g_option_context_add_main_entries (optioncontext, entries, NULL); g_option_context_parse (optioncontext, &argc, &argv, &error);