Fix unportable use of isspace().
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Sep 2014 22:37:45 +0000 (18:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Sep 2014 22:37:45 +0000 (18:37 -0400)
Introduced in commit 11a020eb6.

src/backend/utils/init/postinit.c

index 304be047892c663f665477bbb3f69e71a22a124a..f5a6a671349d8b5556af0b7bfd71aacea755099c 100644 (file)
@@ -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 == '\\')