Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite126945

Browse files
committed
Fix bogus assertion in BootstrapModeMain().
The assertion was always true, as written, thanks to me "simplifying" itbefore commit.Per coverity and Tom Lane.
1 parent0e6aa87 commite126945

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)

[8]ページ先頭

©2009-2025 Movatter.jp