summaryrefslogtreecommitdiffstats
path: root/demos/guide/tls-client-non-block.c
diff options
context:
space:
mode:
authorNeil Horman <nhorman@openssl.org>2024-04-06 16:16:50 +0200
committerNeil Horman <nhorman@openssl.org>2024-04-12 14:02:19 +0200
commitf2f13cff210a1b19cdd76dfab8739567535e2632 (patch)
tree4c11ed9c8a0e07b23f66b54a6117328c35e8cc94 /demos/guide/tls-client-non-block.c
parentEnable demos in select builds (diff)
downloadopenssl-f2f13cff210a1b19cdd76dfab8739567535e2632.tar.xz
openssl-f2f13cff210a1b19cdd76dfab8739567535e2632.zip
Fix warnings found by clang in CI
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> (Merged from https://github.com/openssl/openssl/pull/24047)
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;