Commit 8c89c0d2 authored by unknown's avatar unknown

cleanup


mysys/my_pread.c:
  don't set errno without a real error
parent 8299fa3f
...@@ -145,7 +145,8 @@ uint my_pwrite(int Filedes, const byte *Buffer, uint Count, my_off_t offset, ...@@ -145,7 +145,8 @@ uint my_pwrite(int Filedes, const byte *Buffer, uint Count, my_off_t offset,
#else #else
if ((writenbytes = (uint) pwrite(Filedes, Buffer, Count,offset)) == Count) if ((writenbytes = (uint) pwrite(Filedes, Buffer, Count,offset)) == Count)
break; break;
my_errno= errno; else
my_errno= errno;
#endif #endif
if ((int) writenbytes != -1) if ((int) writenbytes != -1)
{ /* Safegueard */ { /* Safegueard */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment