Skip to content

Commit 4aad2cb

Browse files
committed
Portability fix: isdigit() must be passed an unsigned char.
Oversight in commit 40b9c27, per buildfarm member mamba.
1 parent 0400ae4 commit 4aad2cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ get_dbname_oid_list_from_mfile(const char *dumpdirpath, SimplePtrList *dbname_oi
10731073
char *p = linebuf.data;
10741074

10751075
/* Extract dboid. */
1076-
while (isdigit(*p))
1076+
while (isdigit((unsigned char) *p))
10771077
p++;
10781078
if (p > linebuf.data && *p == ' ')
10791079
{

0 commit comments

Comments
 (0)