mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
Fix unportable usage of isspace().
Must cast char argument to unsigned to avoid doing the wrong thing
with high-bit-set characters. Oversight in commit
30b5ede715
.
This commit is contained in:
parent
c9fc28a7f1
commit
a149d8bd56
@ -1134,7 +1134,7 @@ escapeConnectionParameter(const char *src)
|
|||||||
|
|
||||||
for (p = src; *p; p++)
|
for (p = src; *p; p++)
|
||||||
{
|
{
|
||||||
if (isspace(*p))
|
if (isspace((unsigned char) *p))
|
||||||
{
|
{
|
||||||
need_quotes = true;
|
need_quotes = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user