Commit a149d8bd authored by Tom Lane's avatar Tom Lane

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
30b5ede7.
parent c9fc28a7
......@@ -1134,7 +1134,7 @@ escapeConnectionParameter(const char *src)
for (p = src; *p; p++)
{
if (isspace(*p))
if (isspace((unsigned char) *p))
{
need_quotes = true;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment