Cygwin: POSIX msg queues: slightly rephrase get_mqinfo

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2021-05-25 16:42:44 +02:00
parent 2cc914a34e
commit a4e074672a
1 changed files with 2 additions and 3 deletions

View File

@ -500,10 +500,9 @@ get_mqinfo (cygheap_fdget &fd)
if (fd >= 0)
{
fhandler_mqueue *fh = fd->is_mqueue ();
if (!fh)
set_errno (EINVAL);
else
if (fh)
return fh->mqinfo ();
set_errno (EINVAL);
}
return NULL;
}