aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32-glib-io.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2010-06-10 13:41:12 +0000
committerMarcus Brinkmann <[email protected]>2010-06-10 13:41:12 +0000
commitb243c4263e4ef28362699727ed90589697991fb2 (patch)
treea9a1cf7c916a37bee4b21b5e570b4c03048d4a0c /src/w32-glib-io.c
parent2010-06-09 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-b243c4263e4ef28362699727ed90589697991fb2.tar.gz
gpgme-b243c4263e4ef28362699727ed90589697991fb2.zip
* debug.h (TRACE_SUC6): New macro.
Diffstat (limited to 'src/w32-glib-io.c')
-rw-r--r--src/w32-glib-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32-glib-io.c b/src/w32-glib-io.c
index be73b41e..ff21c3d8 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;