mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03: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:
@ -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--;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user