mirror of
https://github.com/postgres/postgres.git
synced 2025-05-25 00:04:05 -04:00
Fix bogus assertion in BootstrapModeMain().
The assertion was always true, as written, thanks to me "simplifying" it before commit. Per coverity and Tom Lane.
This commit is contained in:
parent
0e6aa8747d
commit
e12694523e
@ -215,9 +215,9 @@ BootstrapModeMain(int argc, char *argv[], bool check_only)
|
|||||||
InitializeGUCOptions();
|
InitializeGUCOptions();
|
||||||
|
|
||||||
/* an initial --boot or --check should be present */
|
/* an initial --boot or --check should be present */
|
||||||
Assert(argc == 1
|
Assert(argc > 1
|
||||||
|| strcmp(argv[1], "--boot") != 0
|
&& (strcmp(argv[1], "--boot") == 0
|
||||||
|| strcmp(argv[1], "--check") != 0);
|
|| strcmp(argv[1], "--check") == 0));
|
||||||
argv++;
|
argv++;
|
||||||
argc--;
|
argc--;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user