Commit d5482339ff58f74d44f46a3e20a354b810f616c1

Edward Thomson 2020-01-10T11:13:25

Merge pull request #5354 from josharian/issue-5353 ntlm: prevent (spurious) compiler warnings

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);