nfs4: Fix {last_one,result} may be used uninitialized warnings
This commit is contained in:
@@ -435,7 +435,7 @@ ConnectionStream::Receive(void** _buffer, uint32* _size)
|
|||||||
void* buffer = NULL;
|
void* buffer = NULL;
|
||||||
|
|
||||||
uint32 record_size;
|
uint32 record_size;
|
||||||
bool last_one;
|
bool last_one = false;
|
||||||
|
|
||||||
object_wait_info object[2];
|
object_wait_info object[2];
|
||||||
object[0].object = fWaitCancel;
|
object[0].object = fWaitCancel;
|
||||||
@@ -688,6 +688,9 @@ Connection::Connect()
|
|||||||
addr6.sin6_port = htons(port);
|
addr6.sin6_port = htons(port);
|
||||||
result = bind(fSocket, (struct sockaddr*)&addr6, sizeof(addr6));
|
result = bind(fSocket, (struct sockaddr*)&addr6, sizeof(addr6));
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
result = EAFNOSUPPORT;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} while (attempt <= 10 && result != B_OK);
|
} while (attempt <= 10 && result != B_OK);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user