summaryrefslogtreecommitdiff
path: root/libbb/full_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/full_write.c')
-rw-r--r--libbb/full_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/full_write.c b/libbb/full_write.c
index d812d04..563f4a8 100644
--- a/libbb/full_write.c
+++ b/libbb/full_write.c
@@ -23,7 +23,7 @@ ssize_t full_write(int fd, const void *buf, size_t len)
total = 0;
- while (len > 0) {
+ while (len) {
cc = safe_write(fd, buf, len);
if (cc < 0)