aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorHiro <Hiro@ee746299-78ed-0310-b773-934348b2243d>2006-05-17 11:27:39 +0000
committerHiro <Hiro@ee746299-78ed-0310-b773-934348b2243d>2006-05-17 11:27:39 +0000
commit140dfce957ed7512bb9c4eed094a78f191e61c07 (patch)
tree6129c1c5a5e77d0fd8465ee46a9bab63e414a945 /src/main.c
parent755f97a9347ce09369cc6f6949c899de6b8acdc5 (diff)
fixed execution failure when using accessibility module, and character corruption and buffer overflow on sending when using half-width kana.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1068 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index ff62ce31..37e8088e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -188,7 +188,8 @@ int main(int argc, char *argv[])
gtk_widget_set_default_visual(gdk_rgb_get_visual());
#if USE_THREADS || USE_LDAP
- g_thread_init(NULL);
+ if (!g_thread_supported())
+ g_thread_init(NULL);
if (!g_thread_supported())
g_error(_("g_thread is not supported by glib.\n"));
#endif