mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2025-10-06 10:19:48 +00:00
ares_set_servers_csv: use ISDIGIT
The IS*() set of macros are preferred to the regular is*() functions as they help us avoid the most common pitfalls.
This commit is contained in:
@ -178,7 +178,7 @@ int ares_set_servers_csv(ares_channel channel,
|
||||
while (pp > start_host) {
|
||||
if (*pp == ':')
|
||||
break; /* yes */
|
||||
if (!isdigit((int)(*pp))) {
|
||||
if (!ISDIGIT(*pp)) {
|
||||
/* Found end of digits before we found :, so wasn't a port */
|
||||
pp = ptr;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user