Commit c6b2c90d authored by unknown's avatar unknown

Merge polly.(none):/home/kaa/src/maint/bug31566/my50-bug31566

into  polly.(none):/home/kaa/src/maint/mysql-5.0-maint
parents 5f00bb75 1c862d0c
...@@ -29,6 +29,10 @@ uint my_write(int Filedes, const byte *Buffer, uint Count, myf MyFlags) ...@@ -29,6 +29,10 @@ uint my_write(int Filedes, const byte *Buffer, uint Count, myf MyFlags)
Filedes, (long) Buffer, Count, MyFlags)); Filedes, (long) Buffer, Count, MyFlags));
errors=0; written=0L; errors=0; written=0L;
/* The behavior of write(fd, buf, 0) is not portable */
if (unlikely(!Count))
return 0;
for (;;) for (;;)
{ {
if ((writenbytes = (uint) write(Filedes, Buffer, Count)) == Count) if ((writenbytes = (uint) write(Filedes, Buffer, Count)) == Count)
......
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