diff options
Diffstat (limited to 'demos/guide')
-rw-r--r-- | demos/guide/quic-client-non-block.c | 2 | ||||
-rw-r--r-- | demos/guide/tls-client-non-block.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/guide/quic-client-non-block.c b/demos/guide/quic-client-non-block.c index a6c1802fcd..bf79b7fef1 100644 --- a/demos/guide/quic-client-non-block.c +++ b/demos/guide/quic-client-non-block.c @@ -231,7 +231,7 @@ int main(int argc, char *argv[]) unsigned char alpn[] = { 8, 'h', 't', 't', 'p', '/', '1', '.', '0' }; const char *request_start = "GET / HTTP/1.0\r\nConnection: close\r\nHost: "; const char *request_end = "\r\n\r\n"; - size_t written, readbytes; + size_t written, readbytes = 0; char buf[160]; BIO_ADDR *peer_addr = NULL; int eof = 0; diff --git a/demos/guide/tls-client-non-block.c b/demos/guide/tls-client-non-block.c index 0b19d67762..05f1a11eb7 100644 --- a/demos/guide/tls-client-non-block.c +++ b/demos/guide/tls-client-non-block.c @@ -183,7 +183,7 @@ int main(int argc, char *argv[]) int ret; const char *request_start = "GET / HTTP/1.0\r\nConnection: close\r\nHost: "; const char *request_end = "\r\n\r\n"; - size_t written, readbytes; + size_t written, readbytes = 0; char buf[160]; int eof = 0; char *hostname, *port; |