1
0
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:
Daniel Stenberg
2010-07-31 00:15:38 +02:00
parent 8d33804971
commit cef3a4c7aa

View File

@ -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;