summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/libio_.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/include/rtems/libio_.h')
-rw-r--r--cpukit/include/rtems/libio_.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/include/rtems/libio_.h b/cpukit/include/rtems/libio_.h
index 7e0f6df71e..6a4943be75 100644
--- a/cpukit/include/rtems/libio_.h
+++ b/cpukit/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)
/*