summaryrefslogtreecommitdiffstats
path: root/demos/guide/tls-client-non-block.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/guide/tls-client-non-block.c')
-rw-r--r--demos/guide/tls-client-non-block.c2
1 files changed, 1 insertions, 1 deletions
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;