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:
Tom Lane 2013-06-01 13:58:23 -04:00
parent c9fc28a7f1
commit a149d8bd56
1 changed files with 1 additions and 1 deletions

View File

@ -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;