2010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>

PR 1693/filesystem
	* libfs/src/imfs/memfile.c: IMFS_memfile_get_block_pointer() was
	checking incorrect pointer and thus had dead code.
This commit is contained in:
Joel Sherrill
2010-08-27 17:43:26 +00:00
parent 9063a0e3c9
commit f70b79178f
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1693/filesystem
* libfs/src/imfs/memfile.c: IMFS_memfile_get_block_pointer() was
checking incorrect pointer and thus had dead code.
2010-08-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1692/filesystem

View File

@@ -931,7 +931,7 @@ block_p *IMFS_memfile_get_block_pointer(
return 0;
p2 = (block_p *)p1[ doubly ];
if ( !p )
if ( !p2 )
return 0;
return (block_p *)&p2[ singly ];