diff options
author | Jean-Frederic Clere <jfclere@apache.org> | 2024-04-16 10:11:19 +0200 |
---|---|---|
committer | Jean-Frederic Clere <jfclere@apache.org> | 2024-04-16 10:11:19 +0200 |
commit | a6f0166b140498998c7c1d93a4f467fcc7311ede (patch) | |
tree | 5f4d9967e9427e17a3479bebcb9f93090d523b0d | |
parent | * modules/generators/mod_cgi.c, mod_cgid.c: Since (diff) | |
download | apache2-a6f0166b140498998c7c1d93a4f467fcc7311ede.tar.xz apache2-a6f0166b140498998c7c1d93a4f467fcc7311ede.zip |
make the compiler happy when using --enable-maintainer-mode
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917013 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | test/clients/h2ws.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/clients/h2ws.c b/test/clients/h2ws.c index 1de38760dd..414e0887fe 100644 --- a/test/clients/h2ws.c +++ b/test/clients/h2ws.c @@ -141,14 +141,13 @@ static int parse_host_port(const char **phost, uint16_t *pport, int *pipv6, size_t *pconsumed, const char *s, size_t len, uint16_t def_port) { - size_t i, offset; + size_t i, offset=0; char *host = NULL; int port = 0; int rv = 1, ipv6 = 0; if (!len) goto leave; - offset = 0; if (s[offset] == '[') { ipv6 = 1; for (i = offset++; i < len; ++i) { |