aboutsummaryrefslogtreecommitdiffstats
path: root/lib/events_glib.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-02 15:28:23 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-02 15:28:23 +0200
commitdd345753c1742905c9f81aa71d8b09109fbc5456 (patch)
tree8689e25f6465c17c3dd5913af6ae289bf13768d4 /lib/events_glib.c
parent0db75ad966458610427dacdd31ecbaddbca18935 (diff)
parentfa75134008bd9206ca02380927c27581feb65c3e (diff)
merge trunk.
Diffstat (limited to 'lib/events_glib.c')
-rw-r--r--lib/events_glib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/events_glib.c b/lib/events_glib.c
index 1198dba6..3e194e98 100644
--- a/lib/events_glib.c
+++ b/lib/events_glib.c
@@ -50,11 +50,12 @@ typedef struct _GaimIOClosure {
gpointer data;
} GaimIOClosure;
-static GMainLoop *loop;
+static GMainLoop *loop = NULL;
void b_main_init()
{
- loop = g_main_new( FALSE );
+ if( loop == NULL )
+ loop = g_main_new( FALSE );
}
void b_main_run()