Merge branch '3499-duration-c-66-6-warning-array-subscript-is-of-type-char-on-netbsd-9-v9_18' into 'v9_18'

Silence negative array index warning with toupper [v9_18]

See merge request isc-projects/bind9!6686
This commit is contained in:
Mark Andrews 2022-08-19 04:30:06 +00:00
commit b6caedd07c

View file

@ -63,7 +63,7 @@ isccfg_duration_fromtext(isc_textregion_t *source,
duration->unlimited = false;
/* Every duration starts with 'P' */
if (toupper(str[0]) != 'P') {
if (toupper((unsigned char)str[0]) != 'P') {
return (ISC_R_BADNUMBER);
}
P = str;