]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Portability fix: isdigit() must be passed an unsigned char.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Apr 2025 20:33:21 +0000 (16:33 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Apr 2025 20:33:21 +0000 (16:33 -0400)
Oversight in commit 40b9c2701, per buildfarm member mamba.

src/bin/pg_dump/pg_restore.c

index c799ae91b392325c52eaaed20dec035d2c184df9..72916199e1348f4c2f0e5c428a6df88f017a1b42 100644 (file)
@@ -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 == ' ')
                {