mysys/my_pread.c:
  don't set errno without a real error
This commit is contained in:
unknown 2006-06-30 08:11:51 +04:00
parent 8299fa3f9e
commit 8c89c0d295

View File

@ -145,7 +145,8 @@ uint my_pwrite(int Filedes, const byte *Buffer, uint Count, my_off_t offset,
#else
if ((writenbytes = (uint) pwrite(Filedes, Buffer, Count,offset)) == Count)
break;
my_errno= errno;
else
my_errno= errno;
#endif
if ((int) writenbytes != -1)
{ /* Safegueard */