From b243c4263e4ef28362699727ed90589697991fb2 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 10 Jun 2010 13:41:12 +0000 Subject: [PATCH] * debug.h (TRACE_SUC6): New macro. --- src/w32-glib-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/w32-glib-io.c b/src/w32-glib-io.c index be73b41..ff21c3d 100644 --- a/src/w32-glib-io.c +++ b/src/w32-glib-io.c @@ -110,7 +110,7 @@ static struct static GIOChannel * find_channel (int fd) { - if (fd < 0 || fd >= MAX_SLAFD) + if (fd < 0 || fd >= MAX_SLAFD || !giochannel_table[fd].used) return NULL; return giochannel_table[fd].chan; -- 2.26.2