imfs/imfs_handlers_link.c: Add _Assert for NULL pointer

CodeSonar flagged this as a possible dereference of a NULL pointer.
This should never occur so adding _Assert().
This commit is contained in:
Josh Oguin
2014-11-26 07:51:59 -06:00
committed by Joel Sherrill
parent 43d6a28fd1
commit 4862532fd9
@@ -78,6 +78,8 @@ static IMFS_jnode_t *IMFS_node_remove_hard_link(
{
IMFS_jnode_t *target = node->info.hard_link.link_node;
_Assert( target != NULL );
if ( target->st_nlink == 1) {
target = (*target->control->node_remove)( target );
if ( target == NULL ) {