From: Jean-Frederic Clere Date: Tue, 16 Apr 2024 08:11:19 +0000 (+0000) Subject: make the compiler happy when using --enable-maintainer-mode X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6f0166b140498998c7c1d93a4f467fcc7311ede;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/test/clients/h2ws.c b/test/clients/h2ws.c index 1de38760dd5..414e0887fe4 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) {