Fix bogus assertion in BootstrapModeMain().

The assertion was always true, as written, thanks to me "simplifying" it
before commit.

Per coverity and Tom Lane.
pull/68/head
Andres Freund 4 years ago
parent 0e6aa8747d
commit e12694523e
  1. 6
      src/backend/bootstrap/bootstrap.c

@ -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…
Cancel
Save