diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-10-25 17:38:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-10-25 17:38:55 +0000 |
commit | 1af79634798aca7004564d68bd47d3810a40370b (patch) | |
tree | 478c0130a1743df75321b201432812ac73209917 /c/src/exec/libcsupport/include | |
parent | 2001-10-24 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-1af79634798aca7004564d68bd47d3810a40370b.tar.bz2 |
2001-10-25 Jennifer Averett <jennifer@OARcorp.com>
* libc/libio.c: Initialize more fields to NULL/0 during initialiation.
* include/rtems/libio_.h: Fix freenode macro so it works for sockets
which do not have the full set of filesystem operations and are
initialized via something other than open().
Diffstat (limited to 'c/src/exec/libcsupport/include')
-rw-r--r-- | c/src/exec/libcsupport/include/rtems/libio_.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c/src/exec/libcsupport/include/rtems/libio_.h b/c/src/exec/libcsupport/include/rtems/libio_.h index 7e0f6df71e..6a4943be75 100644 --- a/c/src/exec/libcsupport/include/rtems/libio_.h +++ b/c/src/exec/libcsupport/include/rtems/libio_.h @@ -165,8 +165,9 @@ extern rtems_libio_t *rtems_libio_iop_freelist; #define rtems_filesystem_freenode( _node ) \ do { \ - if ( (_node)->ops->freenod_h ) \ - (*(_node)->ops->freenod_h)( (_node) ); \ + if ( (_node)->ops )\ + if ( (_node)->ops->freenod_h ) \ + (*(_node)->ops->freenod_h)( (_node) ); \ } while (0) /* |