mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
The result of getopt() should be compared to -1, not EOF, per
pgsql-hackers discussion of this date.
This commit is contained in:
@ -67,7 +67,7 @@ get_opts(int argc, char **argv, struct options * my_opts)
|
||||
my_opts->remotepass = 0;
|
||||
|
||||
/* get opts */
|
||||
while ((c = getopt(argc, argv, "H:p:U:P:d:t:o:xh?")) != EOF)
|
||||
while ((c = getopt(argc, argv, "H:p:U:P:d:t:o:xh?")) != -1)
|
||||
{
|
||||
switch (c)
|
||||
{
|
||||
|
Reference in New Issue
Block a user