Fix pg_ctl bug where detection of binary location from postmaster.opts
authorBruce Momjian <bruce@momjian.us>
Thu, 26 Jun 2008 18:25:24 +0000 (18:25 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 26 Jun 2008 18:25:24 +0000 (18:25 +0000)
wasn't working.

src/bin/pg_ctl/pg_ctl.c

index 5625f1ce2eba7f74147e5d6df2510405a64ec1f1..8329eaae28917b228f928524c122d70867ee7521 100644 (file)
@@ -610,7 +610,7 @@ read_post_opts(void)
                                        *arg1 = '\0';   /* terminate so we get only program name */
                                        post_opts = arg1 + 1; /* point past whitespace */
                                }
-                               if (postgres_path != NULL)
+                               if (postgres_path == NULL)
                                        postgres_path = optline;
                        }
                }