summaryrefslogtreecommitdiff
path: root/gmain.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-12-21 03:28:25 +0000
committerTim Janik <timj@src.gnome.org>1998-12-21 03:28:25 +0000
commit85755f7e77f5283cc13d2e8f7d841d2e151bfc33 (patch)
treec13bb87f81a7baf698d8501e20e8483645e7f627 /gmain.c
parent7f237f6fcd00ad9888ef459ccdc8d02e12c311fd (diff)
downloadglib-85755f7e77f5283cc13d2e8f7d841d2e151bfc33.tar.gz
default initialize source_timeout with -1 so we have a sane timeout value
Mon Dec 21 03:48:04 1998 Tim Janik <timj@gtk.org> * gmain.c (g_main_iterate): default initialize source_timeout with -1 so we have a sane timeout value if (*prpare) doesn't set it.
Diffstat (limited to 'gmain.c')
-rw-r--r--gmain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmain.c b/gmain.c
index c3586acc5..360821d48 100644
--- a/gmain.c
+++ b/gmain.c
@@ -436,7 +436,7 @@ g_main_iterate (gboolean block,
gboolean dispatch)
{
GHook *hook;
- GTimeVal current_time;
+ GTimeVal current_time ={ 0, 0 };
gint n_ready = 0;
gint current_priority = 0;
gint timeout;
@@ -468,7 +468,7 @@ g_main_iterate (gboolean block,
{
GSource *source = (GSource *)hook;
GHook *tmp;
- gint source_timeout;
+ gint source_timeout = -1;
if ((n_ready > 0) && (source->priority > current_priority))
break;