This fixes 5 potential bugs where the conditional would always be true.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4659 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
static void blockingWrite(const int fd, const char *string, size_t len)
|
||||
{
|
||||
while (len) {
|
||||
size_t ret = xwrite(fd, string, len);
|
||||
ssize_t ret = xwrite(fd, string, len);
|
||||
if (ret == len)
|
||||
return;
|
||||
if (ret >= 0) {
|
||||
|
Reference in New Issue
Block a user