mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
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:
commit
b6caedd07c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue