Mailing List Archive

svn commit: r1917013 - /httpd/httpd/trunk/test/clients/h2ws.c
Author: jfclere
Date: Tue Apr 16 08:11:19 2024
New Revision: 1917013

URL: http://svn.apache.org/viewvc?rev=1917013&view=rev
Log:
make the compiler happy when using --enable-maintainer-mode

Modified:
httpd/httpd/trunk/test/clients/h2ws.c

Modified: httpd/httpd/trunk/test/clients/h2ws.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/test/clients/h2ws.c?rev=1917013&r1=1917012&r2=1917013&view=diff
==============================================================================
--- httpd/httpd/trunk/test/clients/h2ws.c (original)
+++ httpd/httpd/trunk/test/clients/h2ws.c Tue Apr 16 08:11:19 2024
@@ -141,14 +141,13 @@ static int parse_host_port(const char **
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) {