Commit 496291ca authored by unknown's avatar unknown

cleanup


mysys/my_pread.c:
  don't set errno without a real error
parent 4c6ce1d2
...@@ -145,6 +145,7 @@ uint my_pwrite(int Filedes, const byte *Buffer, uint Count, my_off_t offset, ...@@ -145,6 +145,7 @@ 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;
else
my_errno= errno; my_errno= errno;
#endif #endif
if ((int) writenbytes != -1) if ((int) writenbytes != -1)
......
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