From 4aad2cb7707dfb239eaaad29a8a7155027d8e8b8 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 17 Apr 2025 16:33:21 -0400 Subject: [PATCH] Portability fix: isdigit() must be passed an unsigned char. Oversight in commit 40b9c2701, per buildfarm member mamba. --- src/bin/pg_dump/pg_restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c index c799ae91b39..72916199e13 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -1073,7 +1073,7 @@ get_dbname_oid_list_from_mfile(const char *dumpdirpath, SimplePtrList *dbname_oi char *p = linebuf.data; /* Extract dboid. */ - while (isdigit(*p)) + while (isdigit((unsigned char) *p)) p++; if (p > linebuf.data && *p == ' ') { -- 2.30.2