projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix the condition for stopping the writev_retry.
[project/ubus.git]
/
libubus-io.c
diff --git
a/libubus-io.c
b/libubus-io.c
index
ca5fdaf
..
09f2dbf
100644
(file)
--- a/
libubus-io.c
+++ b/
libubus-io.c
@@
-77,7
+77,7
@@
static int writev_retry(int fd, struct iovec *iov, int iov_len)
cur_len -= iov->iov_len;
iov_len--;
iov++;
- if (!
cur_len || !
iov_len)
+ if (!iov_len)
return len;
}
iov->iov_len -= cur_len;