1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-21 16:02:15 +03:00

Portability fix: isdigit() must be passed an unsigned char.

Oversight in commit 40b9c2701, per buildfarm member mamba.
This commit is contained in:
Tom Lane
2025-04-17 16:33:21 -04:00
parent 0400ae4a68
commit 4aad2cb770

View File

@ -1073,7 +1073,7 @@ get_dbname_oid_list_from_mfile(const char *dumpdirpath, SimplePtrList *dbname_oi
char *p = linebuf.data; char *p = linebuf.data;
/* Extract dboid. */ /* Extract dboid. */
while (isdigit(*p)) while (isdigit((unsigned char) *p))
p++; p++;
if (p > linebuf.data && *p == ' ') if (p > linebuf.data && *p == ' ')
{ {