diff --git a/sys/fs/vfs/file.c b/sys/fs/vfs/file.c index 23e74f1..eb86f6b 100644 --- a/sys/fs/vfs/file.c +++ b/sys/fs/vfs/file.c @@ -522,7 +522,11 @@ ************************************************************************/ int fclose( fileDescriptor_t *fd ) { fileDescriptor_t *tmpFd = 0x0; - assert( fd ); + + // XXX Can't do this + //assert( fd ); + if (fd == 0) + return (0x0); spinLock( &fdTable_lock );