1
0
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:
Tom Lane
2025-12-08 19:06:36 -05:00
parent 83a26ba59b
commit c004d68c93

View File

@@ -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++;
/* /*