postgres.git / summary / log / commit / refs

commit    4aad2cb7707dfb239eaaad29a8a7155027d8e8b8
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Thu Apr 17 20:33:21 2025 +0000
First released in: 18.0

    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 == ' ') { [parent: 0400ae4a6883]