2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>

* libfs/src/imfs/memfile.c: Fix assert.
This commit is contained in:
Joel Sherrill
2010-06-24 22:01:49 +00:00
parent a9ea7088e3
commit 4d32a76de0
2 changed files with 5 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libfs/src/imfs/memfile.c: Fix assert.
2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libcsupport/src/read.c, libcsupport/src/write.c: read(2) and write(2)

View File

@@ -596,6 +596,7 @@ MEMFILE_STATIC ssize_t IMFS_memfile_read(
#if defined(RTEMS_DEBUG)
assert( the_jnode );
assert( the_jnode->type == IMFS_MEMORY_FILE ||
the_jnode->type != IMFS_LINEAR_FILE );
assert( dest );
#endif
if ( !the_jnode )