Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7f42dab

Browse files
committed
Fix for pg_ctl -o processing. Report from Sean Chittenden.
1 parent 5bd458c commit 7f42dab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_ctl/pg_ctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.23 2004/07/22 01:44:36 tgl Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.24 2004/07/29 16:11:11 momjian Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -359,7 +359,7 @@ test_postmaster_connection(void)
359359
/* keep looking, maybe there is another -p */
360360
}
361361
/* Advance to next whitespace */
362-
while (!isspace(*p))
362+
while (*p && !isspace(*p))
363363
p++;
364364
}
365365

0 commit comments

Comments
 (0)