Skip to content

Commit e126945

Browse files
committed
Fix bogus assertion in BootstrapModeMain().
The assertion was always true, as written, thanks to me "simplifying" it before commit. Per coverity and Tom Lane.
1 parent 0e6aa87 commit e126945

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/bootstrap/bootstrap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ BootstrapModeMain(int argc, char *argv[], bool check_only)
215215
InitializeGUCOptions();
216216

217217
/* an initial --boot or --check should be present */
218-
Assert(argc == 1
219-
|| strcmp(argv[1], "--boot") != 0
220-
|| strcmp(argv[1], "--check") != 0);
218+
Assert(argc > 1
219+
&& (strcmp(argv[1], "--boot") == 0
220+
|| strcmp(argv[1], "--check") == 0));
221221
argv++;
222222
argc--;
223223

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy