Browse Source

Merge pull request #168 from NickolasLapp/uninitWarn

Fixed gcc variable-mayble-uninitialized warning
toddouska 8 years ago
parent
commit
5b2fbd9747
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/server/server.c

+ 1 - 1
examples/server/server.c

@@ -125,7 +125,7 @@ int ServerEchoData(SSL* ssl, int clientfd, int echoData, int throughput)
     int ret = 0;
     char* buffer = (char*)malloc(TEST_BUFFER_SIZE);
     if(buffer) {
-        double start, rx_time = 0, tx_time = 0;
+        double start = 0, rx_time = 0, tx_time = 0;
         int xfer_bytes = 0;
         while((echoData && throughput == 0) || (!echoData && xfer_bytes < throughput)) {
             int select_ret = tcp_select(clientfd, 1); /* Timeout=1 second */