forked from wolfSSL/wolfssl
Merge pull request #168 from NickolasLapp/uninitWarn
Fixed gcc variable-mayble-uninitialized warning
This commit is contained in:
@ -125,7 +125,7 @@ int ServerEchoData(SSL* ssl, int clientfd, int echoData, int throughput)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
char* buffer = (char*)malloc(TEST_BUFFER_SIZE);
|
char* buffer = (char*)malloc(TEST_BUFFER_SIZE);
|
||||||
if(buffer) {
|
if(buffer) {
|
||||||
double start, rx_time = 0, tx_time = 0;
|
double start = 0, rx_time = 0, tx_time = 0;
|
||||||
int xfer_bytes = 0;
|
int xfer_bytes = 0;
|
||||||
while((echoData && throughput == 0) || (!echoData && xfer_bytes < throughput)) {
|
while((echoData && throughput == 0) || (!echoData && xfer_bytes < throughput)) {
|
||||||
int select_ret = tcp_select(clientfd, 1); /* Timeout=1 second */
|
int select_ret = tcp_select(clientfd, 1); /* Timeout=1 second */
|
||||||
|
Reference in New Issue
Block a user