Fix possible assert in the card edit.

This commit is contained in:
Werner Koch 2009-06-09 18:59:45 +00:00
parent caf36ce1ce
commit f4e35be325
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2009-06-09 Werner Koch <wk@g10code.com>
* engine-gpg.c (gpg_io_event): Test for cmd.fd.
* version.c (gpgme_check_version_internal): Make result const.
* gpgme.c: Include priv-io.h.

View File

@ -171,6 +171,8 @@ close_notify_handler (int fd, void *opaque)
}
else if (gpg->colon.fd[1] == fd)
gpg->colon.fd[1] = -1;
else if (gpg->cmd.fd == fd)
gpg->cmd.fd = -1;
else if (gpg->fd_data_map)
{
int i;