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:
Andres Freund 2021-08-09 08:26:59 -07:00
parent 0e6aa8747d
commit e12694523e

View File

@ -215,9 +215,9 @@ BootstrapModeMain(int argc, char *argv[], bool check_only)
InitializeGUCOptions();
/* an initial --boot or --check should be present */
Assert(argc == 1
|| strcmp(argv[1], "--boot") != 0
|| strcmp(argv[1], "--check") != 0);
Assert(argc > 1
&& (strcmp(argv[1], "--boot") == 0
|| strcmp(argv[1], "--check") == 0));
argv++;
argc--;