diff options
author | Tim Janik <timj@gtk.org> | 1998-12-21 03:28:25 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-12-21 03:28:25 +0000 |
commit | 85755f7e77f5283cc13d2e8f7d841d2e151bfc33 (patch) | |
tree | c13bb87f81a7baf698d8501e20e8483645e7f627 /gmain.c | |
parent | 7f237f6fcd00ad9888ef459ccdc8d02e12c311fd (diff) | |
download | glib-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |