Skip to content

Commit a6f0166

Browse files
committed
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
1 parent c144067 commit a6f0166

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/clients/h2ws.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,13 @@ static int parse_host_port(const char **phost, uint16_t *pport,
141141
int *pipv6, size_t *pconsumed,
142142
const char *s, size_t len, uint16_t def_port)
143143
{
144-
size_t i, offset;
144+
size_t i, offset=0;
145145
char *host = NULL;
146146
int port = 0;
147147
int rv = 1, ipv6 = 0;
148148

149149
if (!len)
150150
goto leave;
151-
offset = 0;
152151
if (s[offset] == '[') {
153152
ipv6 = 1;
154153
for (i = offset++; i < len; ++i) {

0 commit comments

Comments
 (0)