Skip to content

Commit

Permalink
Portability fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Jun 17, 2019
1 parent c8b5fa4 commit 81f60e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysys/my_pread.c
Expand Up @@ -69,7 +69,7 @@ size_t my_pread(File Filedes, uchar *Buffer, size_t Count, my_off_t offset,
if (readbytes != Count)
{
/* We should never read with wrong file descriptor! */
DBUG_ASSERT(my_errno != 9);
DBUG_ASSERT(my_errno != EBADF);
my_errno= errno;
if (errno == 0 || (readbytes != (size_t) -1 &&
(MyFlags & (MY_NABP | MY_FNABP))))
Expand Down

0 comments on commit 81f60e8

Please sign in to comment.