mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +03:00
Fix minor portability issue in pg_resetwal.c.
The argument of isspace() (like other <ctype.h> functions)
must be cast to unsigned char to ensure portable results.
Per NetBSD buildfarm members. Oversight in 636c1914b.
This commit is contained in:
@@ -1246,7 +1246,7 @@ strtouint32_strict(const char *restrict s, char **restrict endptr, int base)
|
|||||||
bool is_neg;
|
bool is_neg;
|
||||||
|
|
||||||
/* skip leading whitespace */
|
/* skip leading whitespace */
|
||||||
while (isspace(*s))
|
while (isspace((unsigned char) *s))
|
||||||
s++;
|
s++;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user