4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-28 03:27:46 +08:00

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

View File

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