summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/open.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2010-02-16 01:47:46 +0000
committerChris Johns <chrisj@rtems.org>2010-02-16 01:47:46 +0000
commitb3b8add4b425709c711ff1515754b09b755aad11 (patch)
tree2c6dc1a1570eeb26066acb2a76b013d5251eebeb /cpukit/libcsupport/src/open.c
parentThis commit was generated by cvs2svn to compensate for changes in r22653, (diff)
downloadrtems-b3b8add4b425709c711ff1515754b09b755aad11.tar.bz2
2010-02-16 Chris Johns <chrisj@rtems.org>
* libcsupport/src/open.c: Tighten the open handler check. 2010-02-16 Sebastian Huber <sebastian.huber@embedded-brains.de> * libcsupport/src/rmdir.c, libcsupport/src/unlink.c: Free the allocated pathloc.
Diffstat (limited to 'cpukit/libcsupport/src/open.c')
-rw-r--r--cpukit/libcsupport/src/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/open.c b/cpukit/libcsupport/src/open.c
index 6b957464f7..25a6f4e239 100644
--- a/cpukit/libcsupport/src/open.c
+++ b/cpukit/libcsupport/src/open.c
@@ -158,7 +158,7 @@ int open(
iop->flags |= rtems_libio_fcntl_flags( flags );
iop->pathinfo = loc;
- if ( !iop->handlers->open_h ) {
+ if ( !iop->handlers || !iop->handlers->open_h ) {
rc = ENOTSUP;
goto done;
}