nfs4: Fix {last_one,result} may be used uninitialized warnings

This commit is contained in:
Pawel Dziepak
2013-02-14 20:44:26 +01:00
parent 4c64bd932c
commit da95db1014
@@ -435,7 +435,7 @@ ConnectionStream::Receive(void** _buffer, uint32* _size)
void* buffer = NULL;
uint32 record_size;
bool last_one;
bool last_one = false;
object_wait_info object[2];
object[0].object = fWaitCancel;
@@ -688,6 +688,9 @@ Connection::Connect()
addr6.sin6_port = htons(port);
result = bind(fSocket, (struct sockaddr*)&addr6, sizeof(addr6));
break;
default:
result = EAFNOSUPPORT;
break;
}
} while (attempt <= 10 && result != B_OK);