From: Tom Lane Date: Mon, 1 Sep 2014 22:37:45 +0000 (-0400) Subject: Fix unportable use of isspace(). X-Git-Tag: jit-before-rebase-2017-11-03~6604 X-Git-Url: http://git.postgresql.org/gitweb/static/developers.postgresql.org?a=commitdiff_plain;h=01b6976c13a9cf87f3c6767c9722576166c1b081;p=users%2Fandresfreund%2Fpostgres.git Fix unportable use of isspace(). Introduced in commit 11a020eb6. --- diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 304be04789..f5a6a67134 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -442,7 +442,7 @@ pg_split_opts(char **argv, int *argcp, char *optstr) */ while (*optstr) { - if (isspace(*optstr) && !last_was_escape) + if (isspace((unsigned char) *optstr) && !last_was_escape) break; if (!last_was_escape && *optstr == '\\')