Commit 93def7ad643988a1a1541f62132fe53151454610

Josh Bleecher Snyder 2020-01-09T13:37:18

ntlm: prevent (spurious) compiler warnings Pull in commit https://github.com/ethomson/ntlmclient/commit/e7b2583e1bc28c33c43854e7c318e859b4e83bef to fix #5353.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/deps/ntlmclient/ntlm.c b/deps/ntlmclient/ntlm.c
index 9d0f3b8..24b08f6 100644
--- a/deps/ntlmclient/ntlm.c
+++ b/deps/ntlmclient/ntlm.c
@@ -587,7 +587,9 @@ int ntlm_client_negotiate(
 	size_t *out_len,
 	ntlm_client *ntlm)
 {
-	size_t hostname_len, hostname_offset, domain_len, domain_offset;
+	size_t hostname_len, domain_len;
+	size_t domain_offset = 0;
+	size_t hostname_offset = 0;
 	uint32_t flags = 0;
 
 	assert(out && out_len && ntlm);