of p->infd against zero. Add easserts for infd having a plausible
value.
+2014-06-03 Paul Eggert <eggert@cs.ucla.edu>
+
+ * process.c (wait_reading_process_output): Omit incorrect test
+ of p->infd against zero. Add easserts for infd having a plausible
+ value.
+
2014-06-02 Dmitry Antipov <dmantipov@yandex.ru>
Adjust to match recent lwlib changes.
{
struct Lisp_Process *p =
XPROCESS (chan_process[channel]);
- if (p && p->gnutls_p && p->gnutls_state && p->infd
+ if (p && p->gnutls_p && p->gnutls_state
&& ((emacs_gnutls_record_check_pending
(p->gnutls_state))
> 0))
{
nfds++;
+ eassert (p->infd == channel);
FD_SET (p->infd, &Available);
}
}
> 0))
{
nfds = 1;
+ eassert (0 <= wait_proc->infd
+ && wait_proc->infd < FD_SETSIZE);
/* Set to Available. */
FD_SET (wait_proc->infd, &Available);
}