[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r16519 - gnunet-gtk/src
From: |
gnunet |
Subject: |
[GNUnet-SVN] r16519 - gnunet-gtk/src |
Date: |
Mon, 15 Aug 2011 12:49:01 +0200 |
Author: grothoff
Date: 2011-08-15 12:49:01 +0200 (Mon, 15 Aug 2011)
New Revision: 16519
Modified:
gnunet-gtk/src/gnunet-gtk.c
Log:
fix crash
Modified: gnunet-gtk/src/gnunet-gtk.c
===================================================================
--- gnunet-gtk/src/gnunet-gtk.c 2011-08-15 10:46:47 UTC (rev 16518)
+++ gnunet-gtk/src/gnunet-gtk.c 2011-08-15 10:49:01 UTC (rev 16519)
@@ -291,9 +291,10 @@
for (i = 0; !need_realloc && i < max_nfds; i += 1)
{
int isset[3];
- isset[0] = FD_ISSET (i, &rfds->sds);
- isset[1] = FD_ISSET (i, &wfds->sds);
- isset[2] = FD_ISSET (i, &efds->sds);
+
+ isset[0] = (rfds == NULL) ? 0 : FD_ISSET (i, &rfds->sds);
+ isset[1] = (wfds == NULL) ? 0 : FD_ISSET (i, &wfds->sds);
+ isset[2] = (efds == NULL) ? 0 : FD_ISSET (i, &efds->sds);
if (!isset[0] && !isset[1] && !isset[2])
continue;
if (fd_counter >= allocated_nfds)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r16519 - gnunet-gtk/src,
gnunet <=