mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-25 06:53:03 +00:00
BUILD: fix usual isdigit() warning on solaris
src/standard.c: In function `str2sa_range':
src/standard.c:734: warning: subscript has type `char'
This one was recently introduced by commit c120c8d3
.
This commit is contained in:
parent
49f74d0ed9
commit
a39d19905e
@ -731,7 +731,7 @@ struct sockaddr_storage *str2sa_range(const char *str, int *low, int *high, char
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (isdigit(*port1)) { /* single port or range */
|
||||
if (isdigit((int)(unsigned char)*port1)) { /* single port or range */
|
||||
port2 = strchr(port1, '-');
|
||||
if (port2)
|
||||
*port2++ = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user