diff options
author | unknown <petr@mysql.com> | 2006-06-30 08:11:51 +0400 |
---|---|---|
committer | unknown <petr@mysql.com> | 2006-06-30 08:11:51 +0400 |
commit | 8c89c0d2957e27554582e099cc57e842985bbbd5 (patch) | |
tree | fed309935071f6f46a23c65c9dbb087c42f3ef5b /mysys/my_pread.c | |
parent | 8299fa3f9e5d459641e01b51e9c016dba08dfbf4 (diff) | |
download | mariadb-git-8c89c0d2957e27554582e099cc57e842985bbbd5.tar.gz |
cleanup
mysys/my_pread.c:
don't set errno without a real error
Diffstat (limited to 'mysys/my_pread.c')
-rw-r--r-- | mysys/my_pread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/my_pread.c b/mysys/my_pread.c index a829caa80d2..ac52895efe9 100644 --- a/mysys/my_pread.c +++ b/mysys/my_pread.c @@ -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 */ |