Changeset 18a54ee for select.c


Ignore:
Timestamp:
Feb 15, 2008, 1:43:30 PM (13 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
6b580b0
Parents:
9c7a701
Message:
eliminate a segfault.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • select.c

    r9c7a701 r18a54ee  
    135135  for(i = 0; i < len; i++) {
    136136    d = (owl_dispatch*)owl_list_get_element(dl, i);
    137     if (FD_ISSET(d->fd, fds)) {
     137    /* While d shouldn't normally be null, the list may be altered by
     138     * functions we dispatch to. */
     139    if (d != NULL && FD_ISSET(d->fd, fds)) {
    138140      if (d->cfunc != NULL) {
    139141        (d->cfunc)();
Note: See TracChangeset for help on using the changeset viewer.