From e750bad54ae21d74b42926a31dd2528964586ba6 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Wed, 7 Mar 2012 08:12:32 +0100 Subject: [PATCH] Add g_type_init calls --- debian/changelog | 8 ++++++++ src/eweouz-dump-addressbook.c | 1 + src/eweouz-write-addressbook.c | 2 ++ 3 files changed, 11 insertions(+) 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); -- 2.39.5