diff options
Diffstat (limited to 'c/src/exec/posix/src/mqueueunlink.c')
-rw-r--r-- | c/src/exec/posix/src/mqueueunlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/c/src/exec/posix/src/mqueueunlink.c b/c/src/exec/posix/src/mqueueunlink.c index 4a884f7b82..421b91543c 100644 --- a/c/src/exec/posix/src/mqueueunlink.c +++ b/c/src/exec/posix/src/mqueueunlink.c @@ -43,8 +43,7 @@ int mq_unlink( Objects_Locations location; status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id ); - - if ( !status ) + if ( status != 0 ) set_errno_and_return_minus_one( status ); the_mq = _POSIX_Message_queue_Get( the_mq_id, &location ); |