]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
make the compiler happy when using --enable-maintainer-mode
authorJean-Frederic Clere <jfclere@apache.org>
Tue, 16 Apr 2024 08:11:19 +0000 (08:11 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Tue, 16 Apr 2024 08:11:19 +0000 (08:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1917013 13f79535-47bb-0310-9956-ffa450edef68

test/clients/h2ws.c

index 1de38760dd5228b923c133c4b40002e1bde6b9aa..414e0887fe445325673b38c8fef8d26164e69e02 100644 (file)
@@ -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) {