From c5ad877039d5a24701783c65f538faf9bb2c67b7 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 3 Jan 2006 14:20:12 +0000 Subject: [PATCH] 2006-01-03 Marcus Brinkmann * w32-glib-io.c (_gpgme_io_close): Only close fd if there is no channel for it. --- trunk/gpgme/ChangeLog | 5 +++++ trunk/gpgme/w32-glib-io.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 5030dd0..3ca9302 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2006-01-03 Marcus Brinkmann + + * w32-glib-io.c (_gpgme_io_close): Only close fd if there is no + channel for it. + 2005-12-31 Marcus Brinkmann * w32-glib-io.c (find_channel): Set channel to unbuffered. diff --git a/trunk/gpgme/w32-glib-io.c b/trunk/gpgme/w32-glib-io.c index 5c11660..7dd5740 100644 --- a/trunk/gpgme/w32-glib-io.c +++ b/trunk/gpgme/w32-glib-io.c @@ -287,8 +287,8 @@ _gpgme_io_close (int fd) g_io_channel_unref (chan); giochannel_table[fd] = NULL; } - - _close (fd); + else + _close (fd); return 0; } -- 2.26.2