diff options
| author | Tom Lane | 2013-06-01 17:58:23 +0000 |
|---|---|---|
| committer | Tom Lane | 2013-06-01 17:58:23 +0000 |
| commit | a149d8bd56edc2f06643118ed8aac8bce6ebad6d (patch) | |
| tree | 57953c246e1f1717faf7f122c93fd828c95c725e /src/bin/pg_basebackup/pg_basebackup.c | |
| parent | c9fc28a7f12e27d530e2657c9dc6080fbfbe8a14 (diff) | |
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
30b5ede7157e34e77c7914b8ecfd55aa8da6edc3.
Diffstat (limited to 'src/bin/pg_basebackup/pg_basebackup.c')
| -rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 1e22969d552..56657a42c40 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -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; |
