]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Correct end condition.
authorUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 23:46:30 +0000 (23:46 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 23:46:30 +0000 (23:46 +0000)
sysdeps/posix/writev.c

index f6f685ce7a61b01e35f8061e3386e60362c63aaf..0fd9f78e222411a5b6cabdb577b8fabc230d3083 100644 (file)
@@ -57,7 +57,7 @@ __writev (fd, vector, count)
 
       bp += copy;
       to_copy -= copy;
-      if (bytes == 0)
+      if (to_copy == 0)
        break;
     }