aboutsummaryrefslogtreecommitdiff
path: root/src/backend/bootstrap/bootstrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/bootstrap/bootstrap.c')
-rw-r--r--src/backend/bootstrap/bootstrap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c
index 3416802811b..48615c0ebcb 100644
--- a/src/backend/bootstrap/bootstrap.c
+++ b/src/backend/bootstrap/bootstrap.c
@@ -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--;