cleanup
mysys/my_pread.c: don't set errno without a real error
This commit is contained in:
parent
8299fa3f9e
commit
8c89c0d295
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user