aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-23 16:23:25 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-23 16:23:25 +0000
commit7ad14837353e2f6e43819d978044b79096574058 (patch)
treef9a15c2f7464a750955bf0373c4aeba9c4d15233
parentdd69238ac1ede56cd21f46799f10fe251f36cd25 (diff)
downloadgnunet-gtk-7ad14837353e2f6e43819d978044b79096574058.tar.gz
gnunet-gtk-7ad14837353e2f6e43819d978044b79096574058.zip
-make sure to initialize delay and need_gfds in case we do not have gtk events at all
-rw-r--r--src/lib/eventloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eventloop.c b/src/lib/eventloop.c
index 93bfa319..aaa20cdf 100644
--- a/src/lib/eventloop.c
+++ b/src/lib/eventloop.c
@@ -294,11 +294,11 @@ gnunet_gtk_select (void *cls, struct GNUNET_NETWORK_FDSet *rfds,
294 struct GNUNET_GTK_MainLoop *ml = cls; 294 struct GNUNET_GTK_MainLoop *ml = cls;
295 int max_nfds; 295 int max_nfds;
296 gint poll_result; 296 gint poll_result;
297 gint delay; 297 gint delay = INT_MAX;
298 int i; 298 int i;
299 guint ui; 299 guint ui;
300 guint fd_counter; 300 guint fd_counter;
301 guint need_gfds; 301 guint need_gfds = 0;
302 fd_set aread; 302 fd_set aread;
303 fd_set awrite; 303 fd_set awrite;
304 fd_set aexcept; 304 fd_set aexcept;