Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+3-3
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)