mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 00:14:31 +00:00
BUILD: http_htx: fix ci compilation error with isdigit for Windows
The warning is encountered on platforms for which char type is signed by default. cf the following links https://stackoverflow.com/questions/10186219/array-subscript-has-type-char This must be backported up to 2.4.
This commit is contained in:
parent
ff5adf82a5
commit
164ae4ad55
@ -1760,7 +1760,7 @@ int http_scheme_based_normalize(struct htx *htx)
|
||||
authority = http_get_authority(uri, 0);
|
||||
start = istptr(authority);
|
||||
end = istend(authority);
|
||||
for (ptr = end; ptr > start && isdigit(*--ptr); )
|
||||
for (ptr = end; ptr > start && isdigit((unsigned char)*--ptr); )
|
||||
;
|
||||
|
||||
/* if no port found, no normalization to proceed */
|
||||
|
Loading…
Reference in New Issue
Block a user